Kevin Denver created PDFBOX-1670:
------------------------------------
Summary: Printing pages rotated by 180 degrees is not working
Key: PDFBOX-1670
URL: https://issues.apache.org/jira/browse/PDFBOX-1670
Project: PDFBox
Issue Type: Bug
Affects Versions: 1.8.2
Reporter: Kevin Denver
I'm trying to parse a PDF document, rotate all of it's pages by 180 degrees and
then print the document. The page rotation is ignored when printing but does
rotate correctly if the document is saved to disk.
PDFParser parser = new PDFParser(new FileInputStream(new
File("testdata/myfile.pdf")));
parser.parse();
PDDocument pdDocument = parser.getPDDocument();
for (Object page : pdDocument.getDocumentCatalog().getAllPages()) {
if (page instanceof PDPage) {
((PDPage) page).setRotation(180);
}
}
pdDocument.silentPrint(job);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira