Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3914

LayerUtility ignores OCProperties on import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.7
    • 2.0.8, 3.0.0 PDFBox
    • Utilities
    • None
    • Patch

    Description

      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.

      Attachments

        1. hidden_layer.pdf
          50 kB
          Ivan Khaldeev
        2. import_oc_properties.patch
          2 kB
          Ivan Khaldeev

        Activity

          People

            tilman Tilman Hausherr
            ikhaldeev Ivan Khaldeev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: