Search within Java in General
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
Process to Open & Print PDF File From Java
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
I'm looking for a way to be able to open and print an external PDF file to a
To do this so it opens and prints to a default printer you can use code like:
new ProcessBuilder(pdfReaderPath, "/t", filename).start();
However, i can't seem to specify what printer it actually prints on. I've been trying with this, but it just seems to open the file and doesn't print:
new ProcessBuilder(pdfReaderPath, "/t", filename, printerName).start();
Any suggestions would be greatly appreciated!
Boost this thread!
java printing - printing a pdf
Printing using SWT Urgent
Printing text file direct to the specific Printer in Java
Printing PDF - Technical Solution Needed