[ 
https://issues.apache.org/jira/browse/PDFBOX-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109295#comment-14109295
 ] 

John Hewson edited comment on PDFBOX-2250 at 8/25/14 4:47 PM:
--------------------------------------------------------------

[~lehmi], the spec says that, but the [Adobe Supplement to the ISO 
32000|http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf],
 which describes Acrobat's behaviour, adds that:

{quote}
Acrobat viewers require only that the header appear somewhere within the first 
1024 bytes of the file. 
{quote}

Such PDFs are not unheard of, PDFParser#parseHeader() contains code which scans 
the PDF for the header (although it doesn't limit to 1024 bytes and contains 
some misleading comments).


was (Author: jahewson):
[~lehmi], the spec says that, but the[ Adobe Supplement to the ISO 
32000|http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf,
 which describes Acrobat's behaviour, adds that:

{quote}
Acrobat viewers require only that the header appear somewhere within the first 
1024 bytes of the file. 
{quote}

Such PDFs are not unheard of, PDFParser#parseHeader() contains code which scans 
the PDF for the header (although it doesn't limit to 1024 bytes and contains 
some misleading comments).

> Improve XRef self healing mechanism
> -----------------------------------
>
>                 Key: PDFBOX-2250
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2250
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 1.8.6, 1.8.7, 2.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>         Attachments: PDFBOX-2250-107425-empty-xref.pdf, 
> PDFBOX-2250-110264-xref-zeronumber.pdf
>
>
> PDFBOX-1769 introduced a "self healing" mechanism to repair corrupt XRef 
> offsets. But that one was just a starter and there remain a lot of issues to 
> be solved. I'm planing to solve at least some of them.
> All fixes and improvements are targeting the non-sequential parser and I 
> won't port those changes to the old parser.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to