Hello,
I'm trying to add PdfPTable or multi columns through Stamper but I don't
see any api available in stamper object. I'm trying to add TOC(table of
contents) with page number through stamper.
The followings are the section of code I used currently but I'm trying
to add page number so it aligned correctly.
PdfReader reader = new PdfReader(statementPath+empid+"tmp.pdf");
PdfContentByte over;
// copy reader pdf to stamp pdf
PdfStamper stamp = new PdfStamper(reader, new
FileOutputStream(statementPath+empid+".pdf"));
over = stamp.getOverContent(i);
over.beginText();
over.setTextMatrix(leftMargin, yPosition);
StringBuffer strPgName = new StringBuffer(" Appendix
").append(strRepeat(131)).append(" ").append(AppendixPgNum);
over.newlineShowText(strPgName.toString());
over.endText();
Thanks,
Don
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender,
delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/