pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4399) Disabled optional content groups are rendered
Date Fri, 11 Jan 2019 04:10:00 GMT

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

Tilman Hausherr commented on PDFBOX-4399:
-----------------------------------------

OK, I'll just do the thing I mentioned 2 days ago. It's not difficult and it doesn't look
THAT bad.

I just tried the current text extraction with page 2 of the file I recently added - it's useful
when not sorted, the English and the Czech ToS are separated from each other. It gets messy
only when activating the sort feature.

I'll investigate filtered extraction after committing the PageDrawer changes.

> 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-046615_p9_OCG-NoRotate-Annotations.pdf,
PDFBOX-4399-2.patch, gs.png, original.pdf, pop-bugzilla42823-OCG.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