Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

35

Likes

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

Copy link to clipboard

Copied

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

Likes

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
Adobe Community Professional ,
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 )

Likes

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