Skip to main content
Known Participant
May 26, 2011
Question

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

  • May 26, 2011
  • 1 reply
  • 400 views

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 has been closed for replies.

1 reply

Adobe Employee
May 27, 2011

leaf = textflow.getFirstLeaf();

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

if(leaf is InlineGraphicElement)