Skip to main content
Participant
October 27, 2012
Question

TLF some InlineGraphicElements

  • October 27, 2012
  • 1 reply
  • 483 views

Hello all, could you give me advice please. when I try add multiple InlineGraphicElements in my text flow, show img only in last "p" element. Here is my code https://gist.github.com/3963747. I trace imported text in console and I can see that img added in last paragraph element, but this behaviour I can change if I will create InlineGraphicElement every time in addLink function,  but all the same, inline graphic element will show only in last "p" element

This topic has been closed for replies.

1 reply

Participant
October 27, 2012

thank u, this problem was solved with help of inlineGraphicResolverFunction, on loading markup, add this function to config of the text flow, and all be ok.

var config:Configuration = new Configuration();

    config.inlineGraphicResolverFunction = function() {

        return new Bitmap(markerBD);

    }

flow = TextConverter.importToFlow(xmlContent,TextConverter.TEXT_LAYOUT_FORMAT, config);