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 2015/10/21 20:40:27 UTC
[jira] [Resolved] (PDFBOX-3041) Wrong default type in Xref stream
W0 element
[ https://issues.apache.org/jira/browse/PDFBOX-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-3041.
-------------------------------------
Resolution: Fixed
Assignee: Tilman Hausherr
OK thanks!
> Wrong default type in Xref stream W0 element
> --------------------------------------------
>
> Key: PDFBOX-3041
> URL: https://issues.apache.org/jira/browse/PDFBOX-3041
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.10, 1.8.11, 2.0.0
> Reporter: Andrea Vacondio
> Assignee: Tilman Hausherr
> Fix For: 1.8.11, 2.0.0
>
> Attachments: PDFA-XRefUncompressed-W0_2_0.pdf
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org