[
https://issues.apache.org/jira/browse/PDFBOX-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr updated PDFBOX-3776:
------------------------------------
Comment: was deleted
(was: Yes, there or on the mailing list, but improve your description, i.e.
does your printer only have letter? Include as much as possible of your code.
To clean up this issue, please remove the latest file and all comments (i.e.
all of today, and the "So...that resolved the issue" (it doesn't,, it's just a
workaround)) related to the jbig2 issue, I'll delete mine too including this
one. This is just to focus on the original problem.)
> Printing a PDF with transparent images causes nothing to print for that page
> ----------------------------------------------------------------------------
>
> Key: PDFBOX-3776
> URL: https://issues.apache.org/jira/browse/PDFBOX-3776
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.5
> Reporter: Jon Ominsky
> Labels: printing
> Attachments: Java Printing Test.pdf, Mytest.pdf,
> PDFBOX-3776-reduced.pdf
>
>
> 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.
> {code}
> 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);
> }
> {code}
> I have also tried printing to a physical printer with the same results. Saves
> me paper by just using the Adobe PDF printer.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]