Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a callout within a PDF doc to a .js file?

Status
Not open for further replies.

pmcmicha

Technical User
May 25, 2000
353
0
0
I am new to pdf javascript and I am in a process of creating multiple pdf files. All the pdfs have to use one specific javascript function. I thought that I could place the function in a TEST.js file and include it in all of the .pdf files. This would be helpful so that if the syntax for the javascript callout ever has to change, only this file will need to be edited.

Note: The TEST.js file should reside in an Appserver or Webserver.

In HTML, we include <script Language = javascript src = xx.js>

Is there any way like this in pdf (Adobe) javascript?
Or are there any other solutions?

Thanks in advance.
 
You can put the javascript function at the document level by going to following in the menu options:

Tools > Javascripts > Document Javascripts

These functions can then be called from anywhere in the current form. There may be a way to put them at a higher level (template level?) but I'm not sure.

I'm also pretty new to this and still looking for good documentation.

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top