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.
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