Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-06-12 Thread danparks
Okay, answered my own question (sorry, I'm new to iText - I just downloaded it today). Because you can tell the type of each element you parse, then you can set the spacing under a paragraph by simply using SpacingAfter: //-- ArrayList elementList = HTMLWorker

Re: [iText-questions] HTMLWorker: Stylesheet not affecting p elements

2009-06-12 Thread danparks
I have a related question. If the element is a paragraph (p), then you could use SpacingAfter to create the desired white space after the paragraph. Something like this: //-- ArrayList elementList = HTMLWorker.ParseToList(strReader, theStyleSheet); iTextSharp