I think ColumnText is better option as the size is now reduced from 2.89MB to
1.81 MB.

ColumnText.showTextAligned(
                            stamp.getOverContent(i), Element.ALIGN_CENTER,
                            new Phrase(String.format("Page %d/%d", i, 
totalPages)),
                            297.5f, 28, 0);


Can anyone please tell why is it so? Stamper takes more size and ColumnText
takes less?


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Adding-page-number-with-pdf-stamper-increases-the-pdf-size-tp4015574p4015670.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
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

Reply via email to