Hello,
I am trying to copy several pages from a SrcFile and save it into a destFile
PdfReader pdfReader = new PdfReader(SrcFileName);
pdfReader.selectPages(Pages); // Pages is an ArrayList saved the pages that I
am interested in and I have tested the List~It is fine~
PdfCopy pdfCopy = new PdfCopy(doc, new FileOutputStream(new File(filepath)));
PdfImportedPage impPage = null;
doc.open();
impPage = pdfCopy.getImportedPage(pdfReader, page);// Uh...I think something
wrong here...page is only one
page in the Pages......
pdfCopy.addPage(impPage);
doc.close();
Netbeans report bugs at itextpdf.PdfReader.selectPages
How can I combine PdfReader.selectPages & PdfCopy? or should I
combine PdfReader.selectPages & PdfStamper? I find no example...Any
hints?
Thanks a million in advance~~~: )
Chen
------------------------------------------------------------------------------
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