Description
I have a PDF with 2 images in it on 2 separate pages. Each page also has some text. When I try to print the PDF, the first page renders fine, but nothing renders for the second page and I get a blank page printed.
String sourcePDF = "C:\\temp\\CPTest\\MyTest.pdf"; PrinterJob job = PrinterJob.getPrinterJob(); try (PDDocument document = PDDocument.load(new File(sourcePDF))) { job.setPageable(new PDFPageable(document); PrintService service = getPrintService("Adobe PDF"); job.setPrintService(service); job.print(); } catch (IOException | PrinterException e) { throw new RuntimeException("Unable to print file " + sourcePDF + ".", e); }
I have also tried printing to a physical printer with the same results. Saves me paper by just using the Adobe PDF printer.
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-3729 Spooling configurations of printer affects large PDF [Contains MS word tiling pattern] printing
- Open
-
PDFBOX-4010 A (rotated) barcode is missing from a pdf when printed
- Closed