Hi, i want to remove all (unsigned) signatures from an PDF. That itself works fine but afterwards if i access the AcroForm Object i always get null / Nullpointer Exception. If i do Step 2. before Step 1. all works fine. What is the reason for that? (Because i changed the AcroFields in advance?).
//1. Remove some fields (signature fields) AcroFields acroFields = this.stamper.getAcroFields(); ArrayList al = acroFields.getBlankSignatureNames(); for (int i = 0; i < al.size(); i++) { acroFields.removeField((String)al.get(i)); } //2. Then fetch the AcroForm but a Nullpointer occurs PRAcroForm form = this.reader.getAcroForm(); form.put(PdfName.SIGFLAGS,new PdfNumber(0)); So if i want to remove the signatures and then set the 'SigFlags' how can this be done? And a general question: The reader can not be reused but the stamper can? Regards, ToM ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar