On 16/05/2012 18:36, Raul Pastor wrote:
Hello
we have developed a web service which receives a xml (with tags
containig html content) and sometimes we get this error when trying to
convert to PDF:
*"com.itextpdf.text.html.simpleparser.CellWrapper cannot be cast to
com.itextpdf.text.Paragraph*"
Any idea about what could be the problem?
1. You're using HTMLWorker. We're abandoning HTMLWorker in favor of XML
Worker.
2. Your HTML is wrong.
You have:
<table><tr><p>A p-tag where you would expect a td-tag</p></tr></table>
or
<table><tr><div>A div-tag where you would expect a td-tag</div></tr></table>
or something like that; you get the idea ;-)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php