I’ve coded a button to run a javascript that does a this.getURL("http://10.10.1.43:8888", false); which works. Is there a way to then run a this.saveAs("/c/temp/test1.pdf"); command to save the information displayed by the getURL?
I’ve coded a button to run a javascript that does a this.getURL("http://10.10.1.43:8888", false); which works. Is there a way to then run a this.saveAs("/c/temp/test1.pdf"); command to save the information displayed by the getURL?
The best place for your code is a trusted Automation Script.
1. Put the "SaveAs" code in a "trustedFunction()"
2. Write code to Activate your functions from an Acrobat Toolbar or menu item.
3. Place all code into a folder level Script. See this article
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/folder_level_scripts/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/folder_level_scripts/[/url]
This cannot be easily done from a document script. Writing a folder level automation script is the way to to
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script