You can't add pages to PdfStamper. Create the extra pages elsewhere and use
PdfCopy to concatenate them.
Best Regards,
Paulo Soares
----- Original Message -----
From: "Rea, Ron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 03, 2003 23:03
Subject: [iText-questions] Adding pages to a stamped pdf
> I am able to create a new single-page PDF where a base PDF is "stamped"
> with data (see code), however I cannot figure out how to add additional
> pages, using the same base PDF and other data, to create one multi-page
> PDF. Any help would be really appreciated!
>
>
> ================
> Creates a single page PDF using the existing base.pdf.
>
> PdfReader reader = new PdfReader("base.pdf");
> PdfStamper stamp = new PdfStamper(reader, new
> FileOutputStream("newpdf.pdf"));
> AcroFields form = stamp.getAcroFields();
>
> form.setField("L1", "This is a test");
> form.setField("L8", "X");
> form.setField("L10", "Public, John, Q.");
> form.setField("L12", "123 Main Street");
> form.setField("L14", "Hometown");
> form.setField("L16", "00000-0000");
>
> stamp.close();
>
> ================
>
> Thanks
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions