Hello,
I have a PDF which has a scanned image on a page. Processing with PDF Library 7.01 and the PDE calls causes the image to be rotated again in the output.
According to the PDF, the application that created the PDF was Xerox WorkCentre 7665 and the producer was PDFlib+PDI 6.0.3 (Linux-ia32) . The scanned image is there as a form XObject and has been scanned landscape (even though it is actually a normal portrait page) so requires a Matrix in the form XObject to rotate the image onto a Letter-sized portrait page so that it views correctly. This views fine in Acrobat.
If this input PDF is processed by an application compiled with PDF Library version 7.01 on Windows (XP SP2), and just the following calls done on the page:
PDPageAcquirePDEContent
PDPageSetPDEContent
PDPageReleasePDEContent
i.e. with no actual changes to the content, the resulting output has the image rotated 90 degrees anti-clockwise. Looking at the objects in the PDF I can see that the form XObject in the output looks the same, with the same Matrix, but the page content has had a rotation added to it:
q
0 1 -1 0 612 0 cm
/Fm0 Do
Q
This seems to be a bug in the PDPageSetPDEContent API call.
Has anyone else seen this problem, and can you suggest a work around for it?
Regards
David