Copy link to clipboard
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:
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,
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.
( ACP )