I'm reading dynamic HTML snippets from a database, some of these
snippets contain Images (<img tag>)
The images rae displayed but on the top of the document, overlapping
with the text. They do not maintain the appearance of the HTML, like
everything else.
I looked using ColumnText, but when I tried to add the elements, it
gives me an error (Insertion of illegal Element):
objects = HTMLWorker.parseToList( sr , style );
ColumnText moduleText = new ColumnText(cb);
for (int k=0; k < objects.size(); ++k)
{
moduleText.addElement( (Element)objects.get
(k) );
pdfSection.add( moduleText );
}
document.add(pdfSection);
Is there a way to add images from a HTML snippet using HTMLworker and
make the text wrap around the images on the HTML code?
Thanks!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/