Bruno Lowagie <bruno.lowagie <at> ugent.be> writes: > > Bruno Lowagie wrote: > > I don't understand the above code. > You create a Paragraph, and add it to the document. > Then you create a Chapter, you leave it EMPTY (you > don't add anything to the Chapter), but still add > it to the document. What do you expect to happen??? > br, > Bruno >
I only add the Paragraph into the Document to show you the different alignments. I thought when I add the Paragraph in the constructor of the Chapter, the Paragraph will be added into the Chapter. After that I add the Chapter into the Document and expect that the Chapter has the alignment of the added Paragraph. Is in my solution something wrong? What I need is the possibility to write the title of a chapter with a right alignment. The other added Paragraphs that I add with the add() method have the correct alignment. ------------------------------------------------------------------------- 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 Buy the iText book: http://itext.ugent.be/itext-in-action/
