iText doesn't support forms created with Designer 7.

----- Original Message ----- 
From: "Ryan Keller" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 06, 2005 9:38 PM
Subject: [iText-questions] Adobe 7.0 form field problems.


> I am having some problems getting the adobe acrobat form field names out
> of a new pdf form I have created with adobe's new 7.0 version of the
> form designer. I am wondering if this is peculiar to 7.0 or if I am
> just doing something wrong in general.
>
> I am working with some legacy code that uses the 'PdfStamper' and
> 'AcroFields' classes to both extract field names from, and to set field
> values for a given Acrobat pdf which includes form fields. Such
> documents created by others in the past (I am assuming with Adobe's form
> designer 5.X or 6.X, but I don't know that for sure) return field names
> like 'firstName' or 'lastName' from the 'formFieldNames' object in the
> code below:
>
>      PdfReader singlePDF = new PdfReader( templateName );
>      ByteArrayOutputStream pdfStream = new ByteArrayOutputStream();
>
>      PdfStamper stamp = new PdfStamper( singlePDF, pdfStream );
>
>      AcroFields form = stamp.getAcroFields();
>      HashMap formFields = form.getFields();
>      Set formFieldNames = formFields.keySet();
>
> I created a new pdf document with the 7.0 version of Adobe's form
> designer and, using the same code as listed above, I get form field
> names that look like 'F[0].P[1].firstName[0]' and 'F[0].P[1].lastName
> [0]' from my form. Searching the web, the code I am using seems to be
> the same as all the examples I can find on how to do this sort of thing.
> I upgraded my itext jar file to version 1.3.3 which was recently
> released with the same results.
>
> Is there a better way to obtain form field information and set form
> field values using the itext API than what I am using here? If so, could
> you point me to a good tutorial on this subject? If not, do you
> recognize this as some sort of common mistake in how I might be creating
> my new form with Adobe's tool?
>
> I appreciate any help you may be able to give me on this matter.
>
> Ryan Keller
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to