abc xyz wrote:
**
hi all
i m trying to make changes in existing file. i want add only
desired pages in new file, for example existing file has 10 pages
but i need only page# 2,5,9. when i create PsfStamper instance all
10 pages are copied into new file . i know i can do this by using
PdfCopy. but i have to use only PdfStamper. can any one tell how
can i get my desired pages in new file using Pdfstamper calss
I already have answered this question in detail on April 26, 2004
(see the mailing list archives). I repeat the part you need:
PdfReader reader = new PdfReader("complete.pdf");
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream("selected_pages.pdf"));
reader.selectPages("2,5,9");
stamper.close();
br,
Bruno
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions