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

geting he url of a form then saving it as a diffent url

mcapps
Registered: Jan 24 2008
Posts: 25

when you open a pdf form from a program how do you go about findint the url of that pdf in a button using javascript ?

Then how would you go about saving if you were doing it over a web app.

My Product Information:
Acrobat Standard 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two URLs associated with a document that are accessible to JavaScript. Look in the document object properties in the Acrobat JavaScript reference, for

1. doc.URL - the documents current path in URL form. Cannot be changed
2. doc.baseURL - the URL used to resolve relative links. This can be changed.

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