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

Wrong default type in Xref stream W0 element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.10, 1.8.11, 2.0.0
    • 1.8.11, 2.0.0
    • Parsing
    • None

    Description

      According to the spec, when parsing a cross reference stream and the W array has a 0 as first element (something like [0 4 1]). this should happen:
      "If the first element is zero, the type field shall not be present, and shall default to type 1".
      So entries read in this scenario should have type 1, in use.
      From org.apache.pdfbox.pdfparser.PDFXrefStreamParser::parse line 115-123 the default type assigned by PDFBox in this scenario is 0, free.

      Attachments

        1. PDFA-XRefUncompressed-W0_2_0.pdf
          15 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            torakiki Andrea Vacondio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: