I have an HTML snippet that looks like this:
<ol><li>TEST 1 <table><tr><td>TEST 2</td></tr></table></li><li>TEST
3</li></ol>

I process it through HTMLWorker like this:

StringReader HTMLreader = new StringReader(concatDesc); 
try{
  ArrayList<Element> x = iTextHTMLWorker.parseToList(HTMLreader,null);
  Iterator<Element> itr = x.iterator();                          
  while (itr.hasNext()) {
    Element e =itr.next();
    ct.addElement(e);
    ct.go();
}

The table inside the first list element is ignored. If I replace
ct.addElement(e); ct.go(); with document.add(e); the table shows up. Is this
expected behavior? Does the ColumnText object handle the objects
differently?
-- 
View this message in context: 
http://www.nabble.com/HTMLWorker-problem-with-ColumnText-tp21625535p21625535.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to