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

Correct validation of Widget Annotations for PDF/A-1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.12, 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • Preflight
    • None

    Description

      The TECHNICAL CORRIGENDUM 2 for ISO 19005-1:2005 (PDF/A-1) added a clause for Widget Annotations:

      For all annotation dictionaries containing an AP key, the appearance dictionary that it defines as its value shall contain only the N key. If an annotation dictionary’s Subtype key has a value of Widget and its FT key has a value of Btn, the value of the N key shall be an appearance subdictionary; otherwise the value of the N key shall be an appearance stream.

      We currently (only) validate with the original clause of ISO 19005-1:2005 (PDF/A-1) which has

      If an annotation dictionary contains the AP key, the appearance dictionary that it defines as its value shall contain only the N key, whose value shall be a stream defining the appearance of the annotation.

      Previous versions of PDFBox report an error for such a widget

      5.3.1 : Invalid field value in an annotation definition, The N Appearance must be a Stream
      

      Attachments

        1. PDFBOX-3408.pdf
          326 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            msahyoun Maruan Sahyoun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: