Jeff Brint wrote: > I have tried using PDfContentByte to add the text, which allows me to > specify the location and center aligned, but it only allows me to use > one font.
That's not true of course: you can change the text state at any time using setFont(BaseFont bf, int size); > I have also tried using a Chunk and adding it to the page, > which allows me to use multiple fonts, but doesn’t allow me to specify > the location or alignment. How did you add the Chunk? Did you have a look at the ColumnText object? This object, discussed in the tutorial, and in chapter 7 of the book, allows you to add basic building blocks (such as Chunk, Phrase, Paragraph,...) at an absolute position. br, Bruno ------------------------------------------------------------------------- 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/
