[
https://issues.apache.org/jira/browse/PDFBOX-5012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17228637#comment-17228637
]
Michael Klink commented on PDFBOX-5012:
---------------------------------------
{quote}Is there a way to obtain a recognized signature (from Adobe) with
original hybrid document, using pdfbox?{quote}
As mentioned above PDFBox *signing only is done in the AcroForm form
presentation*. Thus, no, not out-of the box.
Obviously you can try and read XFA specs and add a signature in the XFA.
Unfortunately, though, Adobe has XFA content in addition to what they specify
in their XFA specifications, and not changing that custom XML while signing
might cause issues.
----
One option, though: As mentioned your PDF looks like a hybrid AcroForm/XFA form
document. (The XFA part is obvious, and there is not the usual "you need
Acrobat" page typical for pure XFA forms.) The purpose of that hybrid format is
to have a form that can be filled-in both by non XFA-aware and by XFA-aware PDF
viewers; in the case of non XFA-aware viewers just the AcroForm part is updated
while in the case of XFA-aware viewers usually both are updated.
If your client, therefore, by design (not by mistake or by default) creates
hybrid AcroForm/XFA form document, they have to also be prepared to read the
AcroForm entries of filled-in PDFs. Thus, it should be ok to remove the XFA
part (and probably a UR3 signature) before signing. In a PDF without XFA part
your PDFBox signature should be recognized by Adobe.
> Signature Field Not Recognize
> -----------------------------
>
> Key: PDFBOX-5012
> URL: https://issues.apache.org/jira/browse/PDFBOX-5012
> Project: PDFBox
> Issue Type: Bug
> Components: Signing
> Affects Versions: 2.0.21
> Reporter: Marco Monacelli
> Priority: Major
> Labels: XFA
> Attachments: PDF_orig_anon.pdf
>
>
> We have a document with a signature field prepared.
> We can locate the signature field and add the signature to it, but the result
> is still an unsigned document.
> CosWriter not identifies the field as a signature field.
> The document has been made anonymous but the result is the same as the
> original.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]