File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Printing a PDF file in duplex mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing a PDF file in duplex mode" Watch "Printing a PDF file in duplex mode" New topic

Printing a PDF file in duplex mode

Paulo Carvalho
Ranch Hand

Joined: Nov 12, 2008
Posts: 57

Can anyone give me an example on how can I print a PDF file, using java, and in duplex mode (1 page each side of the paper sheet) ?

I have already a class that asks the printer to be used and prints a PDF file on this printer. But When I indicate that I want duplex mode, it is not taken (like if I did not said that I wanted on duplex mode - no error but the printing result is not the expected).

Vijayender Bandaru

Joined: Nov 21, 2006
Posts: 21
did you consider itext API

see if this helps...

also checkout itext homepage
I agree. Here's the link:
subject: Printing a PDF file in duplex mode
It's not a secret anymore!