How do I print a PDF file using the new JDK 1.4 printing API?

John Zukowski

Until someone provides a PDF print service, you can't. The standard runtime does not provide one. Just because you can specify a DocFlavor of PDF (DocFlavor.STRING.INPUT_STREAM.PDF) doesn't mean you can print one.

From Ivo Limmen:
You could use GhostScript to print the PDF using Process and Runtime.exec(). The tool is available for several platforms with the same command line options so portability isn't a large problem. (Be sure to check the license though.)

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact