Copy link to clipboard
Copied
Is it possible to activate a document tab by index using ExtendScript or Javascript?
Something like <app.documents(0).activate>?
😉
Copy link to clipboard
Copied
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():
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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/
Copy link to clipboard
Copied
Many thanks for your help, @try67 !