You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/04/09 01:10:16 UTC

[jira] [Resolved] (PDFBOX-1670) Printing pages rotated by 180 degrees is not working

     [ 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)