Hi There, Is there any way to read the new field types available in designer?
for example: password fields, numeric fields and date/time fields Seems I am able to read only the following field types: FIELD_TYPE_NONE FIELD_TYPE_PUSHBUTTON FIELD_TYPE_CHECKBOX FIELD_TYPE_RADIOBUTTON FIELD_TYPE_TEXT FIELD_TYPE_LIST FIELD_TYPE_COMBO FIELD_TYPE_SIGNATURE Thanks Philip ------- Original Message Follows ------- From: [EMAIL PROTECTED] To: <[email protected]> Subject: How to read fields in a static PDF form created in designer 7? Date: Wed, 13 Feb 2008 13:29:56 Hi There, I have a PDF form created with acrobat prof. The following code reads all the fields name and value properly. But if I Open the PDF file in designer 7 and save the form as static the code won't work with the new created PDF Form. var i: integer; Field_Name, Field_Value: string; reader: PdfReader; form: PRAcroForm; fields: Arraylist; a: AcroFields; begin reader := PdfReader.Create(PDFInput); form := reader.AcroForm; fields := form.Fields; SetLength(PDFFields, fields.Count); a := reader.AcroFields; for i := 0 to fields.Count - 1 do begin Field_Name := (fields.Item[i] as PRAcroForm.FieldInformation).name; //Field Name Field_Value := a.GetField(Field_Name); //Field Value Looking at the debug window I noticed that now the field names for the new PDF have a strange pattern like (notice the "þÿ" after each period and the spaces bettween characters): þÿ F [ 0 ].þÿ P 1 [ 0 ].þÿ c a n a d i a n _ p r o v i n c e s [ 0 ] instead of F[0].P1[0].canadian_provinces[0] as in the original PDF I am attaching the 2 forms... Thanks Philip ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
