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

Issue saving a pdf file as from an AIR Application

olu
Registered: Aug 5 2008
Posts: 5

Hi there,

I'm working on an application that fills a template PDF Document with form fields from an AIR app. I've gotten the AIR app to populate the form fields in the PDF template using embedded Javascript. I'm just in need of a solution to save the state of the filled form as a new PDF document.

I don't know what I'm doing wrong but I've tried using the saveAs() function embedded in the PDF but doesn't seem to work. I'm wondering if anyone could give me a hand with this issue.

Thanks.

My Product Information:
Acrobat Standard 8.1.2, Macintosh
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In order to save form data, the PDF must be viewed in Acrobat Pro/Std, or be Reader Enabled with Save Rights. You can Reader Enable from the "Advanced" menu in Acrobat Professional 8.

However, you may have an additional problem. The Flash player is using the Acrobat/Reader OCX to display the PDF. This component has different rules for use than the actual Acrobat/Reader applications. I'm not sure you can save a local copy of the PDF from it, even if it is enabled.

You can submit the PDF, or the PDF data, to a server script.

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

olu
Registered: Aug 5 2008
Posts: 5
Thanks a bunch thomp for your reply. I believe I did a bad bad job explaining myself on the initial post.

Basically what I'm having issues with is printing or saving the state of a scripted PDF form. I'm working on an AIR application that fills PDF forms from the AIR app. Here is the work flow I envision for the app:

- Forms are filled in the AIR App
- The fields are stored in a SQLite DB
- Fields are pulled from the DB into a template scripted PDF File
- Template PDF file should be able to be saved & printed off with the respective forms fieldI have everything working besides the saving & printing aspect of the application. I can't seem to make it work. Tried working with the saveAs() but there seems to be some security issues with calling the saveAs() from the script.I'm wondering if anyone could give me a hand with this issue.

Thanks.