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

Change button actions

New Here ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

Hey,

I created multiple PDF's using Adobe InDesign. Since it is not possible with InDesign to create an action that allows me to open a file in a new tab, I would like to do this with Acrobat. Furthermore I would also like to add a button with the open search function and a button with a page jump incluse zoom function to certain coordinates.
How can I realize this? The manual change is unfortunately not an option, because the PDF's contain between 100 and 1000 pages and the changes would have to be made on almost every subpage.

Here is a picture of my Master-Page where you can see the buttons.

Screenshot 2023-05-12 111721.png

 

 

Thanks in advance and have a nice day

TOPICS
Acrobat SDK and JavaScript , Windows

Views

290

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

Since it is not possible with InDesign to create an action that allows me to open a file in a new tab, I would like to do this with Acrobat

Opening a document in a new tab (vs new window) is a user's preference that cannot be edited by JavaScript or an action.

 

Capture_2305121431.png

 

 

Votes

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

Danke für deine Antwort. Meine Beschreibung des Problems war wohl nicht genau genug. Wenn ich einem button in Acrobat eine Action zuweise kann ich "neues Fenster" auswählen. In InDesign nicht. Leider wird Datei dann auch in Acrobat im selben Fenster geöffnet (Die andere Datei verschwindet sozusagen einfach). Ich weiß, dass man es in den Einstellungen ändern kann, jedoch ist es eine Datei für einen Kunden und soll idiotensicher sein. Der Pfad zu jeder Datei ist einzigartig und wird in InDesign mittels eines UXP-Script zugewiesen.
Ist es möglich die actions der buttons programmatisch zu ändern?

Votes

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

Thank you for your reply. My description of the problem was probably not accurate enough. When I assign an action to a button in Acrobat I can select "new window". Not in InDesign. Unfortunately, file then also opens in Acrobat in the same window (The other file just sort of disappears). I know you can change it in the settings, however it is a file for a client and is supposed to be foolproof. The path to each file is unique and assigned in InDesign using a UXP script.
Is it possible to change the actions of the buttons programmatically?

Votes

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

How can I realize this? The manual change is unfortunately not an option,

Place these buttons on the first (or any other one) page only, export as PDF, open the PDF with Acrobat Pro, set actions to all buttons, and use "Duplicate Across Pages".

 

Capture_2305121440.png

Votes

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

Thanks, it's working for the search Option but unfortunately not opening file as the pathes are dynamic. Is there another option?

Votes

Translate

Translate

Report

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 ,
May 12, 2023 May 12, 2023

Copy link to clipboard

Copied

LATEST

You can do it in batch using this (paid-for) tool I've developed:

https://www.try67.com/tool/convert-all-links-in-a-pdf-to-open-in-new-window

As mentioned, you can't do it in Acrobat automatically, at least not with a script (might be possible with a plugin).

Votes

Translate

Translate

Report

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