pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Ziel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4399) Disabled optional content groups are rendered
Date Wed, 19 Dec 2018 12:26:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724955#comment-16724955
] 

Stefan Ziel commented on PDFBOX-4399:
-------------------------------------

not a case of forgetfulness ... rendering to bitmap image the ExportState should be considered
and not the ViewState as recommended in [Adobes PDF32000_2008.pdf|https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf]
chapter 8.11.4.4:
{quote} Export dictionary (Optional). A dictionary containing one entry, ExportState, a name
whose
value shall be either ON or OFF. This value shall indicate the
recommended state for content in this group when the document (or part of
it) is saved by a conforming reader to a format that does not support
optional content (for example, a raster image format).
{quote}

> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message