Description
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)
}
pdDocument.silentPrint(job);
Attachments
Issue Links
- is superceded by
-
PDFBOX-2021 PDFPrinter problem with landscape and rotated pages
- Closed