[
https://issues.apache.org/jira/browse/PDFBOX-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15270249#comment-15270249
]
Tilman Hausherr commented on PDFBOX-3336:
-----------------------------------------
I have an idea about the problem shown in the .TXT file. That one does not
contain the signature field. Could it be that the document is already signed,
and that you're resigning it?
{code}
PDSignatureField signatureField = findSignatureField(fields, sigObject);
if (signatureField == null)
{
signatureField = new PDSignatureField(acroForm);
// append the signature object
signatureField.setValue(sigObject);
// backward linking
signatureField.getWidgets().get(0).setPage(page);
}
{code}
This code from PDDocument searches for the signature cosobject. If it is
already there, it does not call {{setNeedToBeUpdated(true);}} but maybe it
should.
> 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]