Try XMLWorker instead. On 16/01/12 21:21, Valerie Lavilla wrote: > I'm having formatting issue on HTMLWorker. > > This one prints okay <p style="text-align: center;"><strong>Test<br > /></strong></p> It prints the text in the center of the PDF file. > > But when I have <br/> after <p> like this: > <p style="text-align: center;"><br/>Test</p> > > It's not putting the text in the center, but rather the default > justified paragraph format. > > Anyone has any idea why this is happening?
It's probably creating a new paragraph after the br tag. Use p tags only. Or try XMLWorker > > Thanks, > Valerie > -- Balder VC http://www.redlab.be/blog/ http://twitter.com/redlabbe ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ iText-questions mailing list [email protected] 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
