----- Original Message -----
From: "William Alexander Segraves" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
<itext-questions@lists.sourceforge.net>
Sent: Saturday, 14 July, 2007 5:33 PM
Subject: Re: [iText-questions] Populate forms that do not use Acro Fields


> ----- Original Message -----
> From: "scott carter" <[EMAIL PROTECTED]>
> To: <itext-questions@lists.sourceforge.net>
> Sent: Saturday, 14 July, 2007 3:35 PM
> Subject: [iText-questions] Populate forms that do not use Acro Fields
>
>
> > I have a collection of forms that I need to automatically populate based
> on
> > data in our database.  I have looked at the Register example on the
site,
> > and the example works great for forms that use Acro Fileds (
> > PdfStamper.getAcroFileds()).
>
> Yes, but the examples in the tutorial can only carry you so far. What you
> really, really need to do if you wish to work with iText is purchase a
copy
> of the book _iText in Action_ (see the "Buy the eBook" link at
> www.lowagie.com/iText).
>
> > I am running into several forms that do not
> > return any fields using this approach that I need to find a way to
> > populate.
>
> You should not expect to be able to populate fields that do not (yet)
exist.
> Burn this fact into your brain permanently. You'll be glad you did.
>
> > I am a beginner, so any help is greatly apprciated. One of the
> > forms that I need to figure out how to populate but does not have a Acro
> > fileds is found here ->
> > https://www.pfizerhelpfulanswers.com/files/C2C_English.pdf .   Anyone
know
> > how to do this?
> >
>
> Yes. There are several examples in the book (see Chapters 2 and 15) and on
> the book support site that will be helpful to you in your quest to convert
> PDF forms (unfillable) into AcroForms (fillable).
>
> > Thanks in advance.
> >
>
> You're very welcome! Reminders: (1) Buy the book. (2) You can't fill
fields
> that don't (yet) exist.

1. Have you bought the book?

2. To help you get started, you should look at the TextFields example in the
Tutorial. Using this example as a guide, you should be able to write a class
that will create all of the text fields that you need for your PDF form.

3. Now that you have an AcroForm (created in 2 above), you may wish to add
content to the form. See the example HelloWorldStamper in Chapter 2 of the
book for guidance on a way to add the C2C_English.pdf form as "under"
content, like a watermark, to your AcroForm (created in 2 above).

4. Now that you've generated an AcroForm that looks like your original
C2C_English.pdf form, you are ready to populate the fields. Remember: You
cannot fill (populate) fields that do not (yet) exist.

I hope this is helpful to you.

Cheers,
Bill Segraves


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to