Title: RE: [iText-questions] Adding pages to a stamped pdf

Thanks for the reply.  I've looked at PDFCopy, but can't find any way to refer to the individual form fields by name using PRAcroForm, like you can using AcroFields.  The CopyPDF example instantiates a form, but never refers to the form fields.  I'm sure there must be a way to get to where I'm aiming, but I just don't have enough experience with iText and can't find a way using the API's. 

Is there an example out there somewhere that shows how someone else was able to create a multi-page pdf by importing a single-page base pdf, along with its form fields, and repeating this base pdf n number of times while changing individual form field data? 

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 04, 2003 6:39 AM
To: Rea, Ron; [EMAIL PROTECTED]
Subject: Re: [iText-questions] Adding pages to a stamped pdf

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
>
>

Reply via email to