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

How do I find a table, image.

Community Beginner ,
Feb 13, 2022 Feb 13, 2022

Copy link to clipboard

Copied

How do I find a table, image in a document and retrieve the corresponding page?

TOPICS
SDK

Views

116

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 ,
Feb 13, 2022 Feb 13, 2022

Copy link to clipboard

Copied

Is this a scripting, C++ sdk or UI query please specify?

-Manan

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 Beginner ,
Feb 14, 2022 Feb 14, 2022

Copy link to clipboard

Copied

LATEST

It's C++

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 ,
Feb 14, 2022 Feb 14, 2022

Copy link to clipboard

Copied

Hi kangs64191518,

 

I can answer the ExtendScript (JavaScript) case.

Loop the allGraphics array of the table object.

Look for the value of table.allGraphics[n].parentPage.

 

Notes:

[1] The returned value for parentPage will be null if the the whole image area is on the pasteboard and does not touch the page. Even if the graphic frame holding the image is touching the page parentPage will return null. So you would also want perhaps get the value of:

table.allGraphics[n].parent.parentPage

[2] parentPage could return a valid page object even if the part of the table holding the image is in overset.

So you would also test:

table.allGraphics[n].geometricBounds in a try/catch scenario.

If the graphic is in overset, you'll ger an error.

 

Regards,
Uwe Laubender

( ACP )

 

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