[ 
https://issues.apache.org/jira/browse/PDFBOX-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr resolved PDFBOX-4103.
-------------------------------------
    Resolution: Fixed

Thank you, I committed your patch with two minor changes, I moved one method 
back to where it was before so that there would be less diff, and I reinstated 
the two "instanceof" that you replaced with null checks. We try to use these 
"instanceof" checks to avoid ClassCastExceptions coming from bad PDFs.

> Optional Content Groups with same names can't have different visibility
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-4103
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4103
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.8
>            Reporter: Ivan Khaldeev
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: OCGs
>             Fix For: 2.0.9, 3.0.0 PDFBox
>
>         Attachments: check_group_by_object_ref.patch, layers.pdf
>
>
> According to PDF specs, it is possible to create OC Groups with the same 
> name. Their visibility should be determined using object references (object 
> number and generation number). The current implementation of 
> PDOptionalContentProperties does not allow to create and check visibility of 
> two different groups with the same name because all checks are done using 
> group name, not group object key.
> Provided PDF demonstrates this issue.
> The attached patch adds an ability to use PDOptionalContentGroup as key to 
> check and set group visibility.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to