Vincent Guo wrote:
> Hi,
> 
> Here is my problem, I have a pdf template with fields to fill by 
> iTextSharp, and the template have several pages, like 10, but when I am 
> trying to create a new pdf report by filling the fields in the template, 
> how can I skip the certain pages if I do not want to use it?

Go to the Keywords page: http://1t3xt.be/?X0001e6
Use Ctrl+F to search for "select pages".
You'll find this "keywords":

Select pages
    with PdfCopy
    with PdfStamper

Assuming that you are using PdfStamper, click on "with PdfStamper".
You'll find an example on this page: http://1t3xt.be/?X00053b
More specifically: HelloWorldSelectedPages http://1t3xt.be/?X00011b

In this example, you'll discover this method:
reader.selectPages("1-3, 7-9, !8");

By the way: this is an example from chapter 2 of "iText in Action".
This chapter is available for free on this site:
http://itextsoftware.com/chap2ebook.shtml

Reading this chapter is A MUST for everyone using iText.

In other words: next time, please use the documentation that is
available before asking a question on the list. Thanks in advance!
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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