If the form is dynamic it won't work. If the form is static there are
some cases where the actual name of the field is an attribute and it
won't work either (it will some day when I have the time and patience to
fix it). You'll have to post a link to the pdf if you're interested in
an answer.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Ismael F
> Sent: Wednesday, December 12, 2007 8:39 AM
> To: Post all your questions about iText here
> Subject: [iText-questions] AcroForm setField error due to XFA 
> entry - bug orcorrect behavoiur?
> 
> Hello,
>  
> I have read that XFA is not supported with iText in different 
> iText questions:
> http://www.nabble.com/extent-of-XFA-support-in-itext-t3336804.html
> http://www.junlu.com/msg/162152.html
> http://www.mail-archive.com/[EMAIL PROTECTED]
> net/msg34432.html
> http://itext.ugent.be/library/question.php?id=30
> http://groups.google.com/group/comp.text.pdf/browse_thread/thr
> ead/aef69adde8ba9512
> ...
> ...
>  
> but I found an error related to it and I don't know if it's a 
> bug or the correct behaviour.
>  
> An extract form a XFA pdf stream after data filled with 
> Acrobat Professional 8.0, and to be managed with iText 2.0:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <?xfa generator="XFA2_4" APIVersion="2.5.6290.0"?>
> <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/";>
> ...
> ...
> 
> with the second line (xfa node) the code below fails in 
> XfaForm class at XfaForm(PdfReader reader):
> ...
> ...
>         domDocument = db.parse(new 
> ByteArrayInputStream(bout.toByteArray()));
>         Node n = domDocument.getFirstChild();
>         n = n.getFirstChild(); // this is null ...
>         // "n" is null as a consequence "templateNode" and 
> "templateSom" also will be null.
>         // Then when setting Acroform fields by "setField" 
> will throw an exception
>         while (n != null) {
> ...
> ...
> 
> Perhaps this could be solutionated with the next line instead 
> of the previous one (n = n.getFirstChild();):
>    while (n!=null && !"xdp".equals( n.getLocalName())  )
>     n = n.getNextSibling();
>  
> but, It was a bug?
> 
> Thanks,
>  
> Ismael


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.


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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/

Reply via email to