Adding a Button "Save form" and generating the file name with help of the filled in form?

44 views
Skip to first unread message

Bernd

unread,
Sep 5, 2013, 9:49:10 AM9/5/13
to cenos...@googlegroups.com, dievielzulang...@email.de
Hello CenoPDF team,
 
we are working on checklists that should be filled in by users.
So we got the idea that it should be possible to generate the file name automatically with help of the entries in the form.
 
For example, we like to use the entries of "Name", "Job no." and "Date".
At the end of the checklist should be a button "Save form".
 
Is it possbile, that the pdf form will be saved for exmaple with the file nam: "<name>_<job no.>_<date>.pdf" ?
 
Thanky you very much for your help!
 
BR
Bernd

Yang Lu

unread,
Sep 6, 2013, 2:25:09 AM9/6/13
to cenos...@googlegroups.com, dievielzulang...@email.de

Hi Bernd,

 

The Adobe Reader does not allow users to save the filled form into a file. If you use Foxit Reader, you can do what you wanted.

 

In your Save Form button, you can create an event handler for Mouse Up. Then add an action as Javascript. In your script, you can use getField to get the contents of the field and use this.saveAs to save the file.

 

The Javascript reference can be found here:

http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

Thanks,

Yang

--
You received this message because you are subscribed to the Google Groups "CenoPDF Support Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cenosupport...@googlegroups.com.
To post to this group, send email to cenos...@googlegroups.com.
Visit this group at http://groups.google.com/group/cenosupport.
For more options, visit https://groups.google.com/groups/opt_out.

Bernd

unread,
Sep 6, 2013, 2:30:26 AM9/6/13
to cenos...@googlegroups.com, dievielzulang...@email.de
Hi Yang,
 
Thank you very much for your fast answer!
 
BR
Bernd 
Reply all
Reply to author
Forward
0 new messages