These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Javascript to save a fillable form as one the the fields

tonyt68
Registered: Apr 10 2008
Posts: 2

I'm new and I just wanted to know if there is some way to save the pdf form once it is filled out as one of the field that the user fills out.
What I have is a form that the user fills out and I want to save the form as one of the text fields. Say the user's name

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, there is a function in the "Doc" object for saving the file, "doc.saveAs()". Look it up in the Acrobat JavaScript Reference. To use this function from a LiveCycle document you'd call it through the event object like this.

event.target.saveAs();

If the form is viewed in Reader, it will need "Reader Extensions", which can be applied from the "Advanced" menu in Acrobat Professional 8.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script