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

Saving getURL displayed information

wmatangos
Registered: Feb 21 2006
Posts: 8

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?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, but this can only be done from a privileged (trusted) execution context.

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