This is exactly what I am trying to do as well....are there any examples of this?
 
 
 
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
>
>
 
 
 
 
Eric Vandervort
Applications Analyst/Programmer
Administrative Information Systems
University Of North Carolina at Chapel Hill
Phone: (919) 962-9894
Email: [EMAIL PROTECTED]
Visit My Homepage at http://www.unc.edu/~ericv

Reply via email to