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

Thomas Chojecki edited comment on PDFBOX-1822 at 12/31/13 12:35 AM:
--------------------------------------------------------------------

I can confirm this error. The created byte range looks good. Maybe it is 
something else that confuse the parser or writer. The pdfbox itself can read 
and verify his created signature. 

I checked it also with the older pdfbox 1.8.2 with the same result.

At the moment I have no idea whats wrong with this document. I found only a 
hybrid xref. Maybe there are different informations inside the xref table and 
the stream. I would need to analyse this case next year. 

// EDIT
It's late, the document only contains a normal xref table and not hybrid 
references, but the pdfbox add a xref stream instead. The detection seems to 
not work properly. Maybe you can attach a working signed document, so I can 
take a look at the result.


was (Author: tchojecki):
I can confirm this error. The created byte range looks good. Maybe it is 
something else that confuse the parser or writer. The pdfbox itself can read 
and verify his created signature. 

I checked it also with the older pdfbox 1.8.2 with the same result.

At the moment I have no idea whats wrong with this document. I found only a 
hybrid xref. Maybe there are different informations inside the xref table and 
the stream. I would need to analyse this case next year. 

> Signature byte range is Invalid
> -------------------------------
>
>                 Key: PDFBOX-1822
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1822
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing, PDModel, PDModel.AcroForm, Signing
>    Affects Versions: 1.8.3, 1.8.4, 2.0.0
>            Reporter: vakhtang koroghlishvili
>         Attachments: araxis-merge - compare two document.jpg, 
> damaged-sig.jpg, unsigned-signed.pdf, unsigned.pdf
>
>
> On person send me a unsigned PDF document. He wanted to sign it. When I try 
> to sign it (using pad box), I have some problem.
> After signing adobe reader tells me "The signature byre range is invalid".  
> I will attach original and signed document.
> I think, it is PDF box parser error. another signature libraries sign 
> document very well. I'm searching the problem at the moment, in order to fix 
> it.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to