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

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

Explorer ,
Aug 15, 2024 Aug 15, 2024

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>

TOPICS
SDK
292
Translate
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
LEGEND ,
Aug 16, 2024 Aug 16, 2024

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

 

Translate
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
Mentor ,
Aug 19, 2024 Aug 19, 2024

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
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
Contributor ,
Aug 20, 2024 Aug 20, 2024
LATEST

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

 

- Rahul Rastogi

Translate
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