I have a simple little test code that can read the data from an XFA form. 
When I run it on a digitally signed form, all I get is one field for the
signature itself.  How can I extract the actual form content covered by the
signature?

Thanks,

        public static void main(String[] args) {
                try {
                           PdfReader reader = new PdfReader("PPF.pdf");
                           PdfDictionary root = reader.getCatalog();
                           PdfDictionary acroform = 
root.getAsDict(PdfName.ACROFORM);
                           acroform.remove(PdfName.XFA);
                           AcroFields form = reader.getAcroFields();
                           Map<String,Item> fields = form.getFields();
                           for (String field : fields.keySet()) {
                             System.out.println(field);
                             System.out.println(form.getField(field));
                           }
                           reader.close();
                        } catch (IOException e) {
                           e.printStackTrace();
                        } 
                
        }




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Extract-Data-from-Inside-Digital-Signature-tp4659596.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to