Locating Anchored TextFrames Using the SDK

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

79

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

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