Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
Can't tell you how to do this in C++ - but through scripting - you need to check every single Cell for Tables.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
There is no direct way to iterate nested tables. You need to write your own business logic for the same.
- Rahul Rastogi
Find more inspiration, events, and resources on the new Adobe Community
Explore Now