Hello,

Thank you for your advice~~~The PdfCopy works now~~~

but the thing is  I want to keep adding pages into the dest file everytime 
I invoke the method, but the result is only the last page I choose will remine 
in the dest file. I think the previous ones are covered by the last one. Is 
there an InsertAfter()? Or AddNewPage() can help me out??

Here are the codes I learned from the book.

PdfReader pdfReader = new PdfReader(SrcFileName);
PdfCopy pdfCopy = new PdfCopy(doc, new FileOutputStream(new File(filepath)));
PdfImportedPage impPage = null;

doc.open();
impPage = pdfCopy.getImportedPage(pdfReader, page);
pdfCopy.addPage(impPage); 
doc.close();


Thanks a lot in advance~~!!!

Chen
----- 原始邮件 -----
发件人:1T3XT BVBA <[email protected]>
收件人:[email protected]
主题:Re: [iText-questions] Re:Re:__PDFCOPY_EXCEPETION
日期:2011-4-17 15:10:33

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