Skip to main content
Inspiring
Aug 16, 2024 4:07 AM UTC
Question

How to Iterate Through Nested Tables in InDesign Using C++

I am an InDesign plugin developer, and my primary programming language is C++. How can I iterate through tables nested within table cells?

 

<Title renamed by MOD>

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Aug 20, 2024 12:36 PM UTC

There is no direct way to iterate nested tables. You need to write your own business logic for the same.

 

- Rahul Rastogi

Translate
Legend
Aug 19, 2024 6:02 PM UTC

IID_ITABLEMODELLIST on kTextStoryBoss sounds promising to find all tables of the story (should be by far fewer than walking all cells) .

For more details about nested tables I'd have a deeper look at ITextStoryThreadDictHier (the header comment even mentions the case) and walk around from there.

 

Translate
Robert at ID-Tasker
Legend
Aug 16, 2024 11:59 AM UTC

Can't tell you how to do this in C++ - but through scripting - you need to check every single Cell for Tables.

 

Translate