We are using PDFBox in our current project to print a pdf file directly to an attached network printer. Printing PDF documents having only portrait pages within worked like a charm.
However we experienced problems with PDFs having LANDSCAPE pages defined, as the orientation is currently always defined by the printer service and not by the PDDocument. This may be desireable in some situations but undesirable in others. Printing PDFs with PORTRAIT and LANDSCAPE pages in one document may lead to strange print results as the landscape pages are truncated to a PORTRAIT width.
It would be good to have a possibility to change the mechanism how the orientation will be determined. This also would allow to fix the following bugs without breaking the current semantics: