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

Detect images inside table cell with extendscript Indesign

New Here ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

Hi, i have a script that scan a tagged xml table , getting cells and texts. I need to detect and get images inside cells that have images. 

 

Properties of cell like allGraphics , allPageItems have length of 0, also tried insertionpoints...

 

Thanks in advance

 

 

TOPICS
Scripting

Views

143

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 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

Maybe look for ~a (anchors) and check whether they're in a cell.

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 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

LATEST

Hi defaultxdyw0lskvnql,

 

what is the object where you use property allGraphics ?

table.allGraphics should work. allGraphics will even contain graphics in tables that are nested in table cells.

 

What's so special with your table? Could you provide a sample document with just one table?

Put it on Dropbox or a similar service and post the download link. Linked images are not necessary, just the InDesign document.

 

Hm. Maybe you do not see graphics at all?

Perhaps groups of elements that do not fall under the category graphics?

 

Thanks,
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