We are printing PDF documents using the class "PDFPrintable", which is working fine for most documents and printers.
Except we found a case where the bounding box of an image is seemingly clipping the contents of a following page in the printouts of certain documents:
(The whole cropbox of the second page should have been painted red - compare attached document)
The following code can be used to reproduce the issue:
The attached document is leading to the erroneous results, when printed via the given method. (and using the following printers)
Some printers, which show this odd behaviour are:
- "Adobe PDF" printer (most likely the easiest way to reproduce this issue)
- Konica Minolta C658
- Kyocera FS-4100DN
We are suspecting, an compatibility issue of PCL based printer drivers and some instructions created by PDFBox.
This behaviour can only then be seen for the following page, if it does contain certain operations. (Such as Shaders => as demonstrated in the example document)