You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/05/17 19:37:15 UTC
[jira] [Commented] (PDFBOX-1922) NonSequentialParser not reading
version in header
[ https://issues.apache.org/jira/browse/PDFBOX-1922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000831#comment-14000831 ]
Tilman Hausherr commented on PDFBOX-1922:
-----------------------------------------
The non sequential parser didn't have anything to read the header. I simply copied that part from the "old" parser and then did a seek(0) to restart as if I hadn't done anything. Now I'm getting the same version numbers for load() and loadNonSeq() for all my test files. I committed this in rev 1595520 for the trunk. I will try do a DRY refactoring at a later time so that this code doesn't exist twice.
Because this is "too good to be true", [~tboehme], [~msahyoun] please have a look :-)
[~tallison@apache.org] Where is the version in the trailer?
> NonSequentialParser not reading version in header
> -------------------------------------------------
>
> Key: PDFBOX-1922
> URL: https://issues.apache.org/jira/browse/PDFBOX-1922
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.4
> Reporter: Tim Allison
> Priority: Minor
> Attachments: testAnnotations.pdf
>
>
> On older pdf files, the NonSequentialParser returns a different PDFVersion than the traditional parser via the call: document.getDocument().getVersion().
> I think this is because NonSequentialParser is not reading the header but relying on the default 1.4 if no version is found in the trailer.
> Many apologies if this is a duplicate. I feel like I've seen this issue elsewhere, but I can't track it down.
--
This message was sent by Atlassian JIRA
(v6.2#6252)