I have a PDF template that I populate with user data.  Sometimes if there is
more than one page, then I would add another page to the PDF using the same
template.  The template size is around 10K.  If I populate this template
once, the final flattened PDF is around 13K - 23K, but if I add another page
using the same template, it just bloats up to 56K or beyond (I am expecting
somewhere between 26K - 46K).

The following is my code where I set the compression...

      if (first_time) {
       document1 = new Document(reader2.getPageSizeWithRotation(1));
       copy1 = new PdfCopy(document1, cbaos);
       copy1.setFullCompression();
       document1.open();
       first_time = false;
      }
      copy1.addPage(copy1.getImportedPage(reader2, 1));

Is there something obvious that I am missing?  Thanks for any input. I am on
iText 2.1.7 on Windows XP.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/setFullCompression-multipage-PDF-tp2284146p2284146.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
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/

Reply via email to