Hi, When I insert a cover page, my page numbers are getting disturbed. If I don't create a cover-page, the numbering is fine
I first create a cover page and then get the PDF data by parsing an xml. document.open(); writer.setPageEmpty(false); createCoverPage(); //get the data from an xml file: document.newPage(); SAXParser parser = SAXParserFactory.newInstance().newSAXParser(); parser.parse(................); If the PDF were to have 2 pages (1st=cover-page, 2nd=data), my page numbers are "Page 1 of 3" on cover-page and "Page 3 of 3" on data page. It should be "1 of 2" and "2 of 2". I think this is happening because of the newPage() call. If I omit the call then my data gets displayed on the first page instead of cover-page. Please let me know how I can solve this. Thanks, Sushil Vegad ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/