Hello Wade,

The documentation is sparse, because PDFBox gives you all objects according to 
the PDF specification.
The naming convention is matching or very close to the names used in the PDF 
specification.
Take a look here: https://www.adobe.com/devnet/pdf/pdf_reference.html 
<https://www.adobe.com/devnet/pdf/pdf_reference.html>

Chapter 12.8 Digital Signatures explains the signature process in PDF.

PDFBox has a lot of very good examples here:
https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/
 
<https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/>


> PDSignature.setContents()

This will take the CMS signature, that you have to create outside of the PDF. 
Take a look at the examples above.

The visual part of a signature has nothing to do with the digital signature.
The visual part is a widget annotation.
Take a look at chapter 12.5.6.19 Widget Annotations.




Regards,
Waldemar


> On 10. 12 2019, at 13:58, Wade Polk <winthrop.p...@mddv.com> wrote:
> 
> Hello Mailing List,
>  
> Please forgive me if I’m doing this wrong, I’ve never actually used a mailing 
> list for support like this but a developer said this was the best thing to do 
> so here I am.
>  
> Long story short, I am attempting to use an older version of PDFBox (1.8.10) 
> to fill out and sign a PDF form. All form fields and signature lines will be 
> on the document long before this. It needs to be signed with a certificate 
> and it needs to operate very much like it does in acrobat, were you see a 
> picture and can click on it for signature details. I’ve attached my short 
> code to keep this simple… my biggest issue has been related to understanding 
> the object hierarchies and purpose… documentation  is sparse so it confuses 
> me (e.g. PDSignature.setContents: “Sets the contents.” … doesn’t really tell 
> me much, I’m guessing this is for setting the img or perhaps the actual 
> certificate).
>  
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to