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

How to import external javascript?

alexsander_santos
Registered: Apr 10 2009
Posts: 14
Answered

Hi,

I would like to know how to import external javascript to a document. A document level script.

For exemple.

I have a file test.pdf and test.js in the same folder. When I open the test.pdf, this will import all the funcions and variables in the test.js, so, I could use this in the document.

Any help?

Thanks!

My Product Information:
Acrobat Standard 9.0, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You can use an FDF file to insert a document level script into a PDF. Once you have created the FDF file, one use use the "Import Form Data", 'importAnFDF.EPS', batch processing, and before / after keys. See [url=http://www.planetpdf.com/developer/article.asp?ContentID=automatic_insertion_of_documen&gid=6505]Automatic Insertion of Document-Level JavaScripts[/url] by Dr. D. P. Story.

George Kaiser