Hi Experts:
i'm trying to do a test for getting general information for each fields from
XFA form like following code:
PdfReader reader = new PdfReader(pdfFile);
XfaForm xfaForm = new XfaForm(reader);
if (xfaForm.isXfaPresent()) {
HashMap templateNodes = xfaForm.getTemplateSom().getName2Node();
Object[] keys = templateNodes.keySet().toArray();
for(int ii =0;ii<keys.length;ii++){
System.out.println("Field Type:
"+xfaForm.getTemplateSom().getFieldType((String)keys[ii]));
Node node = (Node)templateNodes.get(keys[ii]);
if(node.getNodeName().toLowerCase().equals("field")){
// do something
}
}
}
i've looked at the xml which extracted from the xfa from by using the sample
from: http://1t3xt.info/examples/browse/index.php?page=example&id=440
but i cannot find any page information with the field section.
is there any way to know which page it is located for each fields?
thanks.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/