[
https://issues.apache.org/jira/browse/PDFBOX-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15269361#comment-15269361
]
Tilman Hausherr edited comment on PDFBOX-3336 at 5/3/16 8:29 PM:
-----------------------------------------------------------------
The /Size entry of the XRef stream is very suspicious:
{code}
<<
/ID [<D1937B3FD680CC64D5EBCC37CBBFA250> <9C81007F4396CCA0A2C2DFBD3E3C5F31>]
/Info 144 0 R
/Root 146 0 R
/Prev 116
/Type /XRef
/Size 4
/Index [0 1 146 1 244 2]
/W [1 3 0]
/Filter /FlateDecode
/Length 24
>>
{code}
/Size should be 247, not 4: "The number one greater than the highest object
number used in this section or in any section for which this shall be an
update. It shall be equivalent to the Size entry in a trailer dictionary."
Changing the /Size entry manually allows the file to be shown in Adobe Reader
(of course signature is no longer valid).
was (Author: tilman):
The /Size entry of the XRef stream is very suspicious:
{code}
<<
/ID [<D1937B3FD680CC64D5EBCC37CBBFA250> <9C81007F4396CCA0A2C2DFBD3E3C5F31>]
/Info 144 0 R
/Root 146 0 R
/Prev 116
/Type /XRef
/Size 4
/Index [0 1 146 1 244 2]
/W [1 3 0]
/Filter /FlateDecode
/Length 24
>>
{code}
/Size should be 247, not 4: "The number one greater than the highest object
number used in this section or in any section for which this shall be an
update. It shall be equivalent to the Size entry in a trailer dictionary."
Changing the /Size entry manually allows the file to be shown in Adobe Reader
(f course signature is no longer valid).
> several errors in the incremental save
> --------------------------------------
>
> Key: PDFBOX-3336
> URL: https://issues.apache.org/jira/browse/PDFBOX-3336
> Project: PDFBox
> Issue Type: Bug
> Components: Signing, Writing
> Affects Versions: 2.0.1, 2.0.2, 2.1.0
> Environment: JDK8
> Reporter: Marco Monacelli
> Priority: Blocker
> Labels: regression
> Attachments: append_by_pdf_box_no_signature.txt, document_type_2.pdf,
> document_type_2_signed-TILMAN-1.8.pdf,
> document_type_2_signed-TILMAN-INVISIBLE-1.8.pdf,
> document_type_2_signed-TILMAN-INVISIBLE.pdf, document_type_2_signed-TILMAN.pdf
>
>
> We have several mistakes in pdf signature.
> 1) Some PDF ar not signed but no error is arised
> 2) Others contain the signature but acrobat reader does not show it .
> The documents of the first type are confidential and we can only provide the
> information appendend by pdfbox to the original PDF.
> For the second case we will provide you the original document .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]