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

create an action to add a javascript execution to a bookmark

Explorer ,
Mar 27, 2019 Mar 27, 2019

hello I have 100 markers that each open a different pdf, I need to add a javascript to each one, the code is a warning window can you create an action in acrobat to automate this task? When the marker is clicked, the alert window should appear first and then the pdf can be opened.

I need help please

TOPICS
Edit and convert PDFs
918
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
1 ACCEPTED SOLUTION
Community Expert ,
Apr 01, 2019 Apr 01, 2019

A bookmark in a PDF file certainly can execute a script. However, when you use a script to set it to do so it overwrites any existing actions associated with it. In other words, you can't add such an action to your bookmarks without deleting what they already do.

View solution in original post

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
Community Expert ,
Apr 01, 2019 Apr 01, 2019

Hi,

I don't think it is possible to add coding to a bookmark.

If the each bookmark opens a different file (or a different page of the same file?) I would consider making the first page of that pdf the warning explaining to users that if they continue reading this file they are aware and accepting the warning. It might be possible to have the message poping-up as a pdf opens. With a bit of script based of OnFileOpen type of thing.

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
Community Expert ,
Apr 01, 2019 Apr 01, 2019

A bookmark in a PDF file certainly can execute a script. However, when you use a script to set it to do so it overwrites any existing actions associated with it. In other words, you can't add such an action to your bookmarks without deleting what they already do.

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
Community Expert ,
Apr 01, 2019 Apr 01, 2019
LATEST

Correct, sorry. I meant to say not possible without loosing the action already setup.

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