You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Álison Fernandes (JIRA)" <ji...@apache.org> on 2014/01/08 19:58:51 UTC

[jira] [Comment Edited] (PDFBOX-1822) Signature byte range is Invalid

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

Álison Fernandes edited comment on PDFBOX-1822 at 1/8/14 6:57 PM:
------------------------------------------------------------------

To clarify, I consider this to be different problems [~tchojecki]. I'm not trying to digitally sign a previously manipulated PDF, I'm doing a 3 step process: Manipulate, save, sign the saved file. 

What triggers me to blame *PDDocument.save(...)* was doing the following steps, provided a *original.pdf*:
*Case 1:*
* Sign *original.pdf*
* Adobe Reader validates the signature

*Case 2:*
* Load *original.pdf* to a PDDocument
* Save *original.pdf* to a temporary file
* Sign the temporary file
* Adobe Reader reports that the byte range is invalid

If you need further info, we can discuss it in the mailing list as you've stated.



was (Author: vvolkgang):
To clarify, I consider this to be different problems [~tchojecki]. I'm not trying to digitally sign a previously manipulated PDF, I'm doing a 3 step process: Manipulate, save, sign the saved file. 

What triggers me to blame PDDocument.save(...) was doing the following steps, provided a *original.pdf*:
*Case 1:*
* Sign *original.pdf*
* Adobe Reader validates the signature

*Case 2:*
* Load *original.pdf* to a PDDocument
* Save *original.pdf* to a temporary file
* Sign the temporary file
* Adobe Reader reports that the byte range is invalid

If you need further info, we can discuss it in the mailing list as you've stated.


> 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)