[
https://issues.apache.org/jira/browse/PDFBOX-4399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724179#comment-16724179
]
Tilman Hausherr commented on PDFBOX-4399:
-----------------------------------------
Thanks, I retested it and now it works fine without changes, except that you
forgot to change "export" to "view".
Now I'll wait for feedback from Andreas (as explained 3 days ago) and if ok,
commit the whole thing. I've targeted it to 2.0.14 so it can't be forgotten
because we always check for unresolved issues before a release (which I expect
to be in about 3 months, based on past experience).
> Disabled optional content groups are rendered
> ---------------------------------------------
>
> Key: PDFBOX-4399
> URL: https://issues.apache.org/jira/browse/PDFBOX-4399
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.6, 2.0.13
> Reporter: Stefan Ziel
> Priority: Major
> Labels: OCGs
> Fix For: 2.0.14, 3.0.0 PDFBox
>
> Attachments: 1822-AGB.pdf, PDFBOX-4399.patch, gs.png, original.pdf,
> printed.png
>
>
> Printing a Documents with hidden optional content groups [^original.pdf]
> renders hidden content [^printed.png]. Code used to print
> {code:java}
> InputStream sourceStream = new FileInputStream(pFile);
> try {
> PDDocument source = PDDocument.load(sourceStream);
> job.setPageable(new PDFPageable(source));
> job.print(atts);
> } finally {
> sourceStream.close();
> }
> {code}
> This is not only a problem of PDFBox ;) but can be done right ... ghostscript
> does it [^gs.png].
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]