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

Michael Klink commented on PDFBOX-5585:
---------------------------------------

{quote}
It's possible that this is expected behavior, and that what I'm trying to do is 
just not possible, but:

When I have some fields in a document, then sign the document, then add a new 
field to the document and `saveIncremental` sign it, the prior signatures are 
invalidated.
{quote}

Indeed, that's the expected behavior.

After a document is signed, only very few changes remain allowed. While form 
fill-in may or may not be allowed, structural change of the form (like the 
addition of new form fields) always is forbidden. The only exception can be the 
addition of new signature fields.

For details see [this stack overflow 
answer|https://stackoverflow.com/a/16711745/1729265].

> Adding new Field to form during saveIncremental invalidates prior signatures
> ----------------------------------------------------------------------------
>
>                 Key: PDFBOX-5585
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5585
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm, PDModel
>    Affects Versions: 2.0.24
>            Reporter: Chris Newhouse
>            Priority: Major
>         Attachments: signed-then-new-field-added-save-incremental.pdf
>
>
> It's possible that this is expected behavior, and that what I'm trying to do 
> is just not possible, but:
> When I have some fields in a document, then sign the document, then add a new 
> field to the document and `saveIncremental` sign it, the prior signatures are 
> invalidated.
>  
> The message is "Document has been altered or corrupted since it was signed".
>  
> The final signature on top of that is good, and the new field is there...but 
> the old signatures are invalid. Is it possible to add a new field and not 
> invalidate the old signatures? I've successfully edited existing fields, but 
> can't get it a to be OK after adding a new field.
>  
> I've attached a sample document.
>  
> Thank you for your help!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to