Hi people,
I need to get a field as a PdfDictionary, and I know I can do this:
/*********************************************/
PdfDictionary catalog = reader.getCatalog();
PdfDictionary form =
(PdfDictionary)PdfReader.getPdfObject(catalog.get(PdfName.ACROFORM));
PdfArray fields = (PdfArray)form.get(PdfName.FIELDS);
PdfDictionary field =
(PdfDictionary)PdfReader.getPdfObject((PdfObject)fields.getArrayList().get(0));
/*********************************************/
The problem is that I want to reference the field by its name and not
by its number inside the PDF Form, that is, I would like to replace
the "get(0)" and write something like "get("myField'sName)".
Anybody knows how to do that?
Lots of thanks,
Jesús.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/