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 2017/10/24 15:50:00 UTC

[jira] [Assigned] (PDFBOX-3978) IllegalStateException on saveIncrementalForExternalSigning

     [ https://issues.apache.org/jira/browse/PDFBOX-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr reassigned PDFBOX-3978:
---------------------------------------

    Assignee: Tilman Hausherr

> IllegalStateException on saveIncrementalForExternalSigning
> ----------------------------------------------------------
>
>                 Key: PDFBOX-3978
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3978
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 2.0.7
>            Reporter: Alessandro Marini
>            Assignee: Tilman Hausherr
>              Labels: regression
>         Attachments: Test_certified_invisible.pdf
>
>
> When adding a signature to a PDF document which already contains an invisible signature, the following exception is thrown:
> {noformat}
> java.lang.IllegalStateException: signature reserve byte range has been changed after addSignature(), please set the byte range that existed after addSignature()
> {noformat}
> Step to reproduce:
> - Get a simple PDf document having an empty signature field and signed (using Adobe) with an invisible signature.
> - Run the _org.apache.pdfbox.examples.signature.CreateVisibleSignature_ setting _lateExternalSigning = true_
> Full Stack trace:
> {noformat}
> java.lang.IllegalStateException: signature reserve byte range has been changed after addSignature(), please set the byte range that existed after addSignature()
> 	at org.apache.pdfbox.pdmodel.PDDocument.saveIncrementalForExternalSigning(PDDocument.java:1361)
> 	at org.apache.pdfbox.examples.signature.CreateVisibleSignature.signPDF(CreateVisibleSignature.java:270)
> {noformat}
> Use the attached PDF as reference to reproduce
> Maybe related to: PDFBOX-3811



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org