Hi, I have two question regarding Java Printing attributes.
*Sides*: a new HP printer has Duplex mode as default an encountered two
different outputs for these scenarios:
- a PDDocument with one page, but setting PrinterJob.setCopies(2):
prints ok one page after the other
- a PDDocument with two equal pages in it (without using setCopies):
prints one page and the printer stops showing a message to continue with
Duplex mode. (this can only be solved by always adding Sides.ONE_SIDED
and print with attributes)
My question is, can the side behaviour be set on the PDDocument or the
only way to always use "one sided" is with attributes?
I saw in the Printing example
<https://svn.apache.org/repos/asf/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/printing/Printing.java>
a conversion from PDViewerPreferences.DUPLEX.Simplex to Sides.ONE_SIDED,
but I don't know how to use PDViewerPreferences and more importantly if
these preferences are actually respected when printing.
*
Chromaticity*: similar to this question
<http://markmail.org/message/5sr6p2d36xpm32eq>, the same HP printer
always prints in color, ignoring the attribute Chromaticity.MONOCHROME.
I tested a virtual printer (with Snagit) and that attribute works. So, I
can assume that the printer is the one discarding the Chromaticity
attribute.
My question is, PDFBox provides a way to change a PDF to grayscale? If
not, could you indicate me at which point should be the color conversion
be made?
I'm using the latest PDFBox 2.0.8.
Thanks,
Ivan