Ivan Khaldeev created PDFBOX-4103:
-------------------------------------

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

Reply via email to