I have a field on the Master Page that I need to get access to.  When I
extract the data using 

 

FileOutputStream os = new FileOutputStream(outxmlfile);

                XfaForm xfa = new XfaForm(reader);

                Document doc = xfa.getDomDocument();

                NodeList fields = doc.getElementsByTagName("field");

                int cnt = fields.getLength();

                for (int i=0; i < fields.getLength(); i++)

                {

                    Node element = fields.item(i);

                    String tagname =
element.getAttributes().getNamedItem("name").getTextContent();

                    Node actual =
doc.getElementsByTagName(tagname).item(0);

                    if (actual != null)

                        rootEle.setAttribute(tagname,
actual.getTextContent());                   

                }

                

 

I don't see the field and its value as part of the other fields  and
values within the PDF.   Is their a different approach to getting the
fields off the master page?

 

Thanks

 

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to