Fred Janon wrote: > Hi, > > I would like to generate something like this: > > *1.2 Section 2: Leadership Support* > > Quick brown fox jumps over the lazy dog. Quick brown fox jumps over the > lazy dog. Quick brown fox jumps over the lazy dog. Quick brown fox jumps > over the lazy dog. Quick brown fox jumps over the lazy dog. Quick brown > fox jumps over the lazy dog. Quick brown fox jumps over the lazy dog. > Quick brown fox jumps over the lazy dog. > > > Where "*Section 2: Leadership Support" *is left aligned and the rest* > "*Quick brown fox jump..." is justified. I created a List with a > ListItem and added a paragraph (justified with a spacing before) but all > paragraph attributes and newline have been ignored. > > It seems that since a LisItem is a paragraph and there is no method to > add a paragraph to another paragraph, only the paragraph text was added > to the ListItem. > > So the question is: how do I create a ListItem with a different > alignment for its title and content and adding some space before the > paragraph?
I don't think this is supported. I think you need to add a new ListItem (without a list symbol). This should be checked in the iText code though. Maybe there's a better workaround. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
