Starke, Rico wrote: > Hi, > > thanks for your quick reply! Can you provide more information on how to do a > full save with iText after removing the signature field? What I do right now > is: > > InputStream signedFileStream = // FileInputStream for a temporary java.io.File > OutputStream resultFileStream = // FileOutputStream for a different temporary > File > PdfReader reader = new PdfReader(signedFileStream); > AcroFields acroFields = reader.getAcroFields(); > acroFields.removeField("my_signature_name"); > PdfStamper stamper = new PdfStamper(reader, resultFileStream); > stamper.close(); > reader.close();
For starters, your getting your AcroFields object from the reader. You should get it from the stamper: AcroFields acroFields = stamper.getAcroFields(); But I don't know if this will be sufficient to remove the signature. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php