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

How to activate document tab in Acrobat DC?

Contributor ,
Aug 07, 2024 Aug 07, 2024

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

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

😉

TOPICS
JavaScript
432
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 ,
Aug 07, 2024 Aug 07, 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():

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
Contributor ,
Aug 07, 2024 Aug 07, 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!

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 ,
Aug 07, 2024 Aug 07, 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/

 

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
Contributor ,
Aug 08, 2024 Aug 08, 2024
LATEST

Many thanks for your help, @try67 !

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