Thank you.
-Nick
Paulo Soares <[EMAIL PROTECTED]> wrote: That's to be expected if it is a
dynamic form. iText only supports static
forms.
Paulo
----- Original Message -----
From: "Nick Nick"
To:
Sent: Tuesday, April 01, 2008 7:34 PM
Subject: [iText-questions] AcroFields Not Returning All Fields
First, here is my setup:
Adobe Livecycle 8.0
itext2.1 Jar
I'm having a problem with missing fields when using the AcroFields.getFields
method. My form contains 15-20 fields but only one(the last one) is being
returned by the getFields method.
The pdf is being submitted(submit to URL) directly to a java servlet. I'm
first saving the file with a generic name(eg temp.pdf), and I am then trying
to retrieve some of the field values so I can give the file a more
meaningful name.
Anyway, here is the sample code that I'm using when I try to troubleshoot:
InputStream in = filecontentM.getContent(doc.getId());
PdfReader pdfr = new PdfReader(in);
AcroFields af = pdfr.getAcroFields();
HashMap hs = af.getFields();
System.out.println("hashmap size = " + hs.size());
Iterator iter = hs.keySet().iterator();
while(iter.hasNext())
{
Object key = iter.next();
System.out.println("field = " + key.toString());
}
And here is the output that I'm receiving:
08/04/01 14:31:58 hashmap size = 1
08/04/01 14:31:58 field = form1[0].P2[0].SignatureField1[0]
Does anyone know why only one field is available?
Thank you
Nick
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total
Access, No Cost.-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar