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

Tilman Hausherr commented on PDFBOX-5354:
-----------------------------------------

Did you try opening a PDF file as usual, then getting the acroform, and 
creating a new PDAcroForm only if it doesn't exist?

I assume the "some source code" is the {{CreateEmptySignatureForm.java}} 
example.

> How to add empty signature field in existing PDF using pdfbox-3.0.0-RC1 
> ------------------------------------------------------------------------
>
>                 Key: PDFBOX-5354
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5354
>             Project: PDFBox
>          Issue Type: Wish
>          Components: AcroForm, Signing
>            Reporter: Mayur Kothiwala
>            Priority: Major
>              Labels: help-requested, query, solution
>
> I want to add digital signature in existing PDF file. For that i just want to 
> add empty signature field in pdf as per my desire location using Java. Once 
> the new PDF file generated, we would apply digital signature externally by 
> clicking on empty signature field which we design above.
> I found some source code but it's with new empty PDF and i want to add in 
> existing pdf. 
> Kindly provide some sample code.
> I have another query for gradle dependencies. 
> how can i add dependencies in gradle, i already tried with this but it's not 
> working
> compile group: 'org.apache.pdfbox', name: 'pdfbox', version: '3.0.0-RC1'
> Kindly suggest correct way to declare dependancy.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to