Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to run a script on document open

New Here ,
Feb 22, 2017 Feb 22, 2017

I would like to run a script on doc/open that will import some data for later use. Under "Javascript/Document Actions" there are listed "Document Will Close" "Document Did Close" and a few others that I might attach a script to, but no "On Document Open".

It must be possible to do this, but I am not able to find it. Any suggestions please?

I am using Acrobat DC Pro

Bill

TOPICS
Acrobat SDK and JavaScript
4.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 22, 2017 Feb 22, 2017

Any code that is placed under Tools - JavaScript - Document JavaScripts will execute when the file is opened.

If you put your code in a function, though, then you have to make sure to also include a call to that function.

Translate
Community Expert ,
Feb 22, 2017 Feb 22, 2017

Any code that is placed under Tools - JavaScript - Document JavaScripts will execute when the file is opened.

If you put your code in a function, though, then you have to make sure to also include a call to that function.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2017 Feb 22, 2017
LATEST

Thanks. I had the functions in the Document Javascripts area but no calls to them ... thanks again BW

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines