[
https://issues.apache.org/jira/browse/PDFBOX-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson resolved PDFBOX-1670.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Fixed by PDFBOX-2021.
> 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
> Components: Rendering
> Affects Versions: 1.8.2
> Reporter: Kevin Denver
> Fix For: 2.0.0
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)