Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

API file JDK PDF print printing
0
Posted

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

0

Location: http://www.jguru.com/faq/view.jsp?EID=959950 Created: Jul 22, 2002 Modified: 2002-08-06 07:11:23.673 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123