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

PDPage.getAnnotations() modifies the PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • PDModel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: