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

How to SaveAs a pdf document via javascripting?

prabudass
Registered: Aug 14 2008
Posts: 71

How to SaveAs a pdf document via javascripting using "Acrobat 8.0"? Kindly advise me with examples.

Thanks

My Product Information:
Acrobat Pro 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Read this:
http://www.acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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

csearl
Registered: Aug 10 2006
Posts: 28
I am trying to automate this from a VB application using a LiveCycle designed input form. I can use .SaveAs() to save as a JPEG, TIFF, and PDF, however the PDF is interactive. I only want a printable PDF version of the form.
Can this be automated?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Why yes, it can be automated from a VB app, by using the Acrobat Interapplication Communication API. You can get the information you need from the Acrobat SDK documentation:

http://www.adobe.com/devnet/acrobat

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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