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

Locating Anchored TextFrames Using the SDK

Engaged ,
Jan 21, 2021 Jan 21, 2021

Copy link to clipboard

Copied

Hi,

My code is looping through all text frames of an InDesign document to extract all the text it contains. This works quite well, except for anchored boxes, which my code does not seem to reach.

To locate the text frames, I call:

spread->GetItemsOnPage(j, &pageItems, kFalse);

For each text frame of pageItems I then call:

textFrameUtils.GetTextInFrameIncludingOverflow(aBoxID, &outStr);

In the top call, pageItems does not include any anchored text frames. So, should I get a list of anchored objects from aBoxID ? If so, whatmethod should I call (could not find any in the SDK) ?

Very best regards,

Olivier

TOPICS
How to , SDK

Views

127

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 ,
Jan 22, 2021 Jan 22, 2021

Copy link to clipboard

Copied

LATEST

Hi Olivier,

hm. You could loop stories and their text containers.

If the parent of a text container is a character you found an anchored text frame.

That all said: This will work with ExtendScript, cannot tell if you can adapt it to your issue with SDK programing.

 

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