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

Warnings when structure tree RoleMap is merged if the key is already existing in destination directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.14
    • Fix Version/s: 2.0.15, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
      None

      Description

      In https://issues.apache.org/jira/browse/PDFBOX-4415 the feature to merge the RoleMap was introduced.

      In PDFMergerUtility#mergeRoleMap a warning is logged whenever the destination dictionary contains a key from the source directory.

      Not completely sure, but wouldn't it be better to only log a warning when the values are different?

      When merging twice the same template (e.g. with some form fields filled), a warning is logged currently because both templates contains the same role maps.

       

      Best regards and thanks in advance

      Stephan

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              stephan.merkli Stephan Merkli
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: