Use only AcroFields. Call AcroFields.getFields() to get all the fields and the 
field names. The field names will have the form "form1[0].address[0]" but just 
using "address" should also work. If it still doesn't work, post a link to the 
PDF and the field names you are using.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Ville Skyttä
> Sent: Tuesday, October 09, 2007 4:20 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Filling XFA forms, supported or not?
> 
> Hello,
> 
> I'm having trouble filling+flattening XFA forms, and the 
> information I can 
> find about whether it is supported is kind of conflicting - 
> various sources 
> say/indicate it is supported, others say it's not (and the FAQ at 
> http://itext.ugent.be/library/question.php?id=31 doesn't 
> really answer it 
> either).
> 
> In any case, I have some XFA forms for which the field name 
> has been set to 
> something I'd expect in Adobe's Designer, but no matter what 
> I try as the 
> field name to setField(), when I set it and flatten the form, 
> the filled 
> contents are not in the results, they're all blank.  Same 
> thing with both 
> iText 2.0.5 and 2.0.6.  The field names I get from 
> PRAcroForm.getFields() 
> look somehow garbled, and in any case they don't work for 
> AcroFields.setField().  I've also tried accessing various 
> things through the 
> XfaForm, but to no avail.  Tried also all Acrobat 6.x, 7.x, 
> 8.x "static" XFA 
> forms, no difference.
> 
> Does someone have working code examples (preferably along with the 
> to-be-filled PDFs) how to fill+flatten XFA forms?


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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/

Reply via email to