[
https://issues.apache.org/jira/browse/PDFBOX-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-3914.
-------------------------------------
Resolution: Fixed
Assignee: Tilman Hausherr
Fix Version/s: 3.0.0
2.0.8
Thank you for finding this! Your observation is correct and your code too. I
committed a slightly modified version of your patch (I used the PD methods),
but the logic is the same as yours.
> LayerUtility ignores OCProperties on import
> -------------------------------------------
>
> Key: PDFBOX-3914
> URL: https://issues.apache.org/jira/browse/PDFBOX-3914
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.7
> Reporter: Ivan Khaldeev
> Assignee: Tilman Hausherr
> Fix For: 2.0.8, 3.0.0
>
> Attachments: hidden_layer.pdf, import_oc_properties.patch
>
>
> LayerUtility ignores OCProperties on import, this leads to hidden layers
> (Optional Content Groups) become visible after import.
> You could reproduce bug in org.apache.pdfbox.examples.pdmodel.SuperimposePage
> example with provided PDF.
> Attached patch fixes issue.
> Other way to approach this is make LayerUtility.cloner available via getter
> and require dealing with OCProperties in userland code.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]