pass the html to HTMLWorker, through a stream eg MemoryStream (in C#):
StreamReader sr = new StreamReader(new
MemoryStream(Encoding.UTF8.GetBytes(text)), Encoding.UTF8);
ArrayList elements =
iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(sr, ss);//ss is a
stylesheet or pass null

you now have an arraylist of Elements or in .Net IElements so you will need
to cast them first.  Then add these to eg ColunmText or PDFCell or Document
-- 
View this message in context: 
http://www.nabble.com/HTML-to-PDF-tf2017091.html#a5546005
Sent from the iText - General forum at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to