Op 18/04/2011 15:18, Saravana Kumar Ganesan schreef:
> Hi Experts,
>     I have a requirement to create n copies of the same pdf document 
> in new pdf file.I  am using iText2.1.7. Actual pdf is in landscape 
> format.But the merged out is not coming properly.
> I have attached the sample & output document.

Your code is wrong for many reasons! Your original document is 9.47 KB. 
The resulting document is 20.28 KB. That's more than double! Please 
explain why you wrote this code without reading any documentation first! 
If you've read some documentation, please tell us where you found it!

I will repeat EXACTLY what I wrote in my previous answer to the list.

<quote>
Go to http://affiliate.manning.com/idevaffiliate.php?id=223_212
Under "Resources", there's a column "Downloads". Download chapter 6.
</quote>

Look for an example that uses PdfSmartCopy.

Reusing pages from existing documents is done with PdfCopy. However: if 
you know in advance that there's plenty of redundant information, you 
should use PdfSmartCopy. PdfSmartCopy examines the content, and in your 
case, it will detect that some of the pages are repeated. The content of 
these pages will be reused instead of copied over and over again. Even 
if you copy the same document 20 times, you should end up with a file 
that is closer to 10 KB, than to 20 KB.

------------------------------------------------------------------------------
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
[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