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

Receiving parameter info from asp pages

benb
Registered: Oct 23 2009
Posts: 2
Answered

Hello,

I have what seems to be a simple task, but I haven't been able to find anything that resembles simplicty on this.

In the following example, I would like to capture the "NAME" and plug it into appropriate form fields in my pdf document.

"http://www.mysite.com/mydocument.pdf?NAME=John Doe"

I would like to capture NAME on the "Page Open" trigger using Javascript. A simple code example would be greatly appreciated.

Thanks in advance.

My Product Information:
Acrobat Pro 8.1.3, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Take a look at "doc.URL". The documents URL property contians the original URL that was used to open the PDF so it retains the query string.

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