Doug James wrote: > I have a PDF which I am going to convert into an AcroForm that contains > a list of checkboxes and corresponding titles. The titles are stored in > a database so it is likely they will change. Is there some way to add > the checkboxes (selecting the desired box) and titles during run time > instead of using field names to select the desired box? In other words, > is there a way to create a field or template on a form which will accept > an array of checkboxes and titles at run time?
I would provide a fixed number of TextFields. Retrieve the coordinates of those text fields using PdfReader, and use PdfStamper to add the checkboxes (addAnnotation) and corresponding text (getOverContent). Don't forget to remove the original text fields (AcroFields.removeField()). best regards, Bruno ------------------------------------------------------------------------- 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/