Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
Process to Open & Print PDF File From Java
Marcus Hathaway
Ranch Hand
Posts: 89
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Ranchers,
I'm looking for a way to be able to open and print an external PDF file to a
named
printer.
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!
Thanks
We find this kind of rampant individuality very disturbing. But not this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
java printing - printing a pdf
Printing using SWT Urgent
Printing text file direct to the specific Printer in Java
Printing PDF - Technical Solution Needed
Print dialog
More...