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.htmlhttp://www.junlu.com/msg/162152.htmlhttp://www.mail-archive.com/[email protected]/msg34432.htmlhttp://itext.ugent.be/library/question.php?id=30http://groups.google.com/group/comp.text.pdf/browse_thread/thread/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
_________________________________________________________________
La vida de los famosos al desnudo en MSN Entretenimiento
http://entretenimiento.es.msn.com/
-------------------------------------------------------------------------
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