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

Tilman Hausherr commented on PDFBOX-4103:
-----------------------------------------

{quote}
According to PDF specs, it is possible to create OC Groups with the same name.
{quote}
Did you find such a text (if yes, where) or is this a conclusion of you after 
reading the PDF specification? From looking at the structure of your file, it 
does seem that you're right, i.e. all the referencing could be done done by 
object number. I did look at the PDF specification just now but just very 
quickly.

> 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]

Reply via email to