I use page events and the decorator pattern for templates and page numbering. I use template pdf:s for templates. A template pdf contains one or two pages with the template (depending on if I have the same or different tempaltes for page one and for subsequent pages). If I have a separate template for page one I add it manually. The decorators are typically added as listeners to the onPageEnd and onClose events.
The code has the following structure: Create Document object and open it. Load and add the first page template. Add decorators (template, page numbering, test text). Add pdf body (whatever you want to include in the pdf). Close Document. /Klas ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/