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

LayerUtility ignores OCProperties on import

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
      None
    • Flags:
      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. import_oc_properties.patch
          2 kB
          Ivan Khaldeev
        2. hidden_layer.pdf
          50 kB
          Ivan Khaldeev

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: