FDF parsing is unreliable when xref are missing
-----------------------------------------------

                 Key: PDFBOX-1087
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1087
             Project: PDFBox
          Issue Type: Bug
          Components: Parsing
    Affects Versions: 1.6.0
         Environment: Windows Vista SP2 / jre 1.6.0 update 26
            Reporter: Michel Onoff


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


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to