[
https://issues.apache.org/jira/browse/PDFBOX-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359515#comment-16359515
]
Ivan Khaldeev commented on PDFBOX-4103:
---------------------------------------
It is just a conclusion after reading PDF Reference (v1.7, from Adobe), section
8.11 Optional Content (I actually haven't read other parts). "Name" only
mentioned as "suitable for presentation in a reader’s user interface" and no
mentions of any restrictions.
Provided PDF is created in Adobe Illustrator, so this means that even this case
is ambiguous from spec perspective - we already have to deal with such 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
> Priority: Major
> Labels: OCGs
> 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]