Op 20/04/2011 18:19, vikasgupta schreef: > i have changed code to use PDFStamper but still no success
And still you've managed to ignore the documentation. Why are you using the whole cb1.beginText(); cb1.setFontAndStyle();... cb1.endText(); construction, when it's so much easier to use a single line: ColumnText.showTextAligned(cb1, Element.ALIGN_CENTER, new Phrase("page 13"), x, y, 0); furthermore, you do "moveText(400, 663)", but... how do you know that x = 400 and y = 663? Maybe you're adding the text outside the visible area of the page. If we ask you to read the documentation, are we asking too much? If so, we'll return the favor: you're also asking us too much. If not, we'll gladly refer you to the appropriate page numbers. For instance: read the FAQ on page 17. And certainly read page 145: "When you add content at an absolute position, you’ll need to take the (x,y) value of the origin into account if it’s different from (0,0). Otherwise, you risk adding content in the wrong place, maybe even outside the visible area of the page. You also have to make sure not to add anything outside the crop box of the page." ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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