Skip to main content
Sumit_KGL
Inspiring
January 2, 2024
Question

HyperlinkTextDestination

  • January 2, 2024
  • 2 replies
  • 399 views

Hi,

 

Is this possible to attached "Acrobat Javascript" code to HyperlinkTextSource or HyperlinkTextDestination?

this.zoomType=zoomtype.fitW;

 

Sumit

This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
January 2, 2024

I'm not an expert on this topic, but I know in the past I have found it necessary to do all the javascript/interactive configuring in Acrobat.

 

The workflow is to:

1. Export interactive pdf from Indesign

2. In Acrobat, configure all the javascript/interactive elements, and keep this pdf as your master from this point on.

Then in the future whenever you've made changes to the original Indesign document:

3. Export a temporary pdf (same settings as in step 1)

4. Open the master pdf from step 1 in Acrobat

5. Choose "Replace pages" and replace *all* the pages of the master pdf (step 1) with the new temporary pdf (step 3) you just exported from Indesign.

6. Delete the temporary pdf from step 3.

 

This will keep all the javascript/interactive elements in place, but you will then need to move interactive elements to correspond with any movements you made in the indesign file. Which, in Acrobat, is not fun, in my opinion. Sorry.

- Mark

Sumit_KGL
Sumit_KGLAuthor
Inspiring
January 3, 2024

Thank you Mark for the response but this is the requirement to generate the output pdf from Indesign.

 

-Sumit

John D Herzog
Inspiring
January 2, 2024

Are you trying to make a button in a pdf that fits the PDF to the width of the window?

Sumit_KGL
Sumit_KGLAuthor
Inspiring
January 3, 2024

Not button, user will click on hyperlink and it will show with fitWidth option on the text position.

 

-Sumit