You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2015/02/12 08:47:11 UTC
[jira] [Commented] (PDFBOX-2679) Blank page rendered with wrong
xref start objid
[ https://issues.apache.org/jira/browse/PDFBOX-2679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317755#comment-14317755 ]
Andreas Lehmkühler commented on PDFBOX-2679:
--------------------------------------------
It won't work, as the offset of the first entry doesn't have to be "0"
I've found this example in chapter 7.5.4Cross-Reference Table
xref
0 6
0000000003 65535 f
0000000017 00000 n
0000000081 00000 n
0000000000 00007 f
0000000331 00000 n
0000000409 00000 n
I've a solution in my mind as I already said on [users@|http://markmail.org/thread/ox5hsz2jnq5avvik], I just forgot to create an JIRA issue.
> Blank page rendered with wrong xref start objid
> -----------------------------------------------
>
> Key: PDFBOX-2679
> URL: https://issues.apache.org/jira/browse/PDFBOX-2679
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Attachments: PDFBOX-2679.patch
>
>
> From Kevin M. on the users mailing list:
> A confidential file doesn't display its image because the objid is unaccessible, due to a malformed xref table:
> {code}
> xref
> 1 7
> 0000000000 65535 f
> 0000000009 00000 n
> 0000358745 00000 n
> 0000358842 00000 n
> 0000359029 00000 n
> 0000359087 00000 n
> 0000359138 00000 n
> trailer
> {code}
> The first number (1) means the number of the first object. So it would be 1. The second number(7) is the size of the table. The number 1 is incorrect, it should be 0, because "0000000000 65535 f" is the dummy object 0.
> From the pdf spec:
> {quote}The free entries in the cross-reference table form a linked list, with each free entry containing the object number of the next. The first entry in the table (object number 0) is always free and has a generation number of 65,535; it is the head of the linked list of free objects {quote}
> The error messages are:
> Can't find the object 7 0 (origin offset 359138)
> Missing XObject: Im1 (Im1 is the object at 7 0, and is the missing image)
--
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