Skip to main content
Known Participant
May 26, 2011 2:11 PM UTC
Question

What is the best way to loop through TextFlow to find InlineGraphicElements?

I have created a TextFlow and the images load fine, but I would like to loop through and update all the 'source' properties to change the images.  What is the best way to locate all the InlineGraphicElements in my TextFlow?

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
May 27, 2011 6:35 AM UTC

leaf = textflow.getFirstLeaf();

while( (leaf = leaf.getNextLeaf()) != null)

if(leaf is InlineGraphicElement)

Translate