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

FDF parsing is unreliable when xref are missing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7, 2.0.0
    • Fix Version/s: 1.8.8, 2.0.0
    • Component/s: Parsing
    • Labels:
    • Environment:
      Windows Vista SP2 / jre 1.6.0 update 26

      Description

      The following simple FDF is not parsed correctly. The fields list returned by FDFDocument.load(fdfPath).getCatalog().getFDF().getFields(); is null. Note that xrefs are optional in FDF

      %FDF-1.2
      %âãÏÓ
      1 0 obj
      << 
      /FDF << /Fields [ << /V (Sample body)/T (Body)>> << /V (Sample to)/T (To)>> 
      ] 
      >> 
      >> 
      endobj
      trailer
      <<
      /Root 1 0 R 
      
      >>
      %%EOF
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                michelonoff Michel Onoff
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: