Am 10.01.2017 um 11:20 schrieb Siemon Geeroms:

Hi,

We are using pdfbox (latest version 1.8.13) to print pdfs that are generated from another plugin (jasperreports). however, sometimes the orientation of the document changes during printing (see included examples). If we print the PDF with a pdf viewer (fox it reader) the orientation is correct


Please try the 2.0 version, printing was changed. Although there might still be problems with label printing. Java sometimes does things on its own.

If you don't want to code, you can also try the command line PrintPDF utility, it has several options.

https://pdfbox.apache.org/2.0/commandline.html#printpdf

additional to these it has also

  -printerName <name>                  : Print to specific printer
-orientation auto|portrait|landscape : Print using orientation (default: auto)


Tilman

Reply via email to