[
https://issues.apache.org/jira/browse/PDFBOX-4496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801859#comment-16801859
]
Stefan Ziel edited comment on PDFBOX-4496 at 3/26/19 4:02 PM:
--------------------------------------------------------------
in [^original.pdf] exist many OGC's with name of "de" or "fi"
was (Author: jjcool):
in [^original.pdf] exist many OGC's with name of "de" or "fi"
patch coming ...
> OCG enablement with string parameter is not well defined
> --------------------------------------------------------
>
> Key: PDFBOX-4496
> URL: https://issues.apache.org/jira/browse/PDFBOX-4496
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.14
> Reporter: Stefan Ziel
> Priority: Major
> Labels: OCGs
> Attachments: PDFBOX-4496.patch, original.pdf
>
>
> The class {noformat}
> org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties
> {noformat}
> contains two methods
> {noformat} setGroupEnabled(String, boolean){noformat} and {noformat}
> isGroupEnabled(String){noformat}
> accessing the OCG's state using a name as parameter.
> As there can exist various OCG with the same name this access is not well
> defined.
> The current implementation accesses the first group with this name it can
> find.
> To make the setter work a solution would be a loop over all groups with the
> given name and add them to ON or OFF.
> The getter should return some error state if the groups diverge in state.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]