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

How to activate document tab in Acrobat DC?

Contributor ,
Aug 07, 2024 Aug 07, 2024

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>?

😉

TOPICS
JavaScript

Views

144

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

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():

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

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!

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

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/

 

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

Copy link to clipboard

Copied

LATEST

Many thanks for your help, @try67 !

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