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

Wrong default type in Xref stream W0 element

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.10, 1.8.11, 2.0.0
    • Fix Version/s: 1.8.11, 2.0.0
    • Component/s: Parsing
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: