You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/02/10 15:04:00 UTC

[jira] [Updated] (PDFBOX-4103) Optional Content Groups with same names can't have different visibility

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

Tilman Hausherr updated PDFBOX-4103:
------------------------------------
    Labels: OCGs  (was: )

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