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

PDPage.getAnnotations() modifies the PDF

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: PDModel
    • Labels:
      None

      Description

      I stumbled across this bug while using PDFDebugger.

      PDPage.getAnnotations() writes to the Page's COSDictionary, adding a new Annots entry if it is missing.

      This violates one of the rules which we introduced for 2.0, that reading from a PDF file should not result in the file's COS model being modified.

        Attachments

          Activity

            People

            • Assignee:
              jahewson John Hewson
              Reporter:
              jahewson John Hewson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: