Hi everyone :)

HTMLWorker ParseToList seems to intepret tags such as underline, bold an so on 
properly.
Unfortunately I'm unable to get ul/li bullet points or any other list symbol 
into my PDF report.

Would greatly appreciate some help,
Mischa

-- snip --

StyleSheet styles = new StyleSheet();
styles.LoadTagStyle("p", "font-size", "5px"); 
styles.LoadTagStyle("ul", "face", "Times");
styles.LoadTagStyle("ul", "size", "25px");
styles.LoadTagStyle("ul", "leading", "15f");
styles.LoadTagStyle("ul", "list-style-type", "square");
styles.LoadTagStyle("li", "face", "Times");
styles.LoadTagStyle("li", "size", "25px");
styles.LoadTagStyle("li", "leading", "15f");

List<iTextSharp.text.IElement> htmlarraylist = 
iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new 
StringReader(text), styles);
string supportedTags = 
iTextSharp.text.html.simpleparser.HTMLWorker.tagsSupportedString;

for(int i = 0; i < htmlarraylist.Count; i++)
doc.Add(htmlarraylist[i]);

-- snip --
                                          
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to