Skip to main content
zeRafio
Inspiring
August 7, 2024
Question

How to activate document tab in Acrobat DC?

  • August 7, 2024
  • 1 reply
  • 672 views

Is it possible to activate a document tab by index using ExtendScript or Javascript?

Something like <app.documents(0).activate>?

😉

This topic has been closed for replies.

1 reply

try67
Adobe Expert
August 7, 2024

There is a method in Acrobat JavaScript called bringToFront, but from what I've seen it doesn't really work.

For example:

app.activeDocs[0].bringToFront():

zeRafio
zeRafioAuthor
Inspiring
August 7, 2024

Perfect!

Now is there a way to get the tab index? 

I tried <app.activeDocs[0].index ;> with no success.

And where can I find the Javascript DOM for Acrobat?

Thanks!

try67
Adobe Expert
August 7, 2024

I don't think so. The order of the items in the activeDocs array matches the order in which the files were opened, I believe.

 

The Acrobat JS API is a part of the Acrobat SDK, which you can find here:

https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/