Mike,
M_Borg wrote: > I am new to using iText and Adobe Acrobat. I do not know the cause of an > approval signature being reported as corrupted. The same signing > algorithm routine succeeds without a problem when performing > certifications. Unfortunately, when trying to sign a visible signature > field the signature is never reported as valid, whether signing a iText > certified document that allows for comments, form fill-in, etc. or an > uncertified PDF form. The version of the form being signed is version > 1.6. It is not an XFA or XML PDF and is just a simple single page form. It sure would be easier for us to try and help you if you attached an example result of the signature applied your way with iText. An additional bit of sample code would make everything complete. Merely looking at the signature dictionary, the following looks a bit weird: M_Borg wrote: > 61 0 obj > <</ByteRange[0 122373 133007 2977 ] > /Contents< hashvalue > > [...] > /SubFilter/adbe.pkcs7.detached/Type/Sig>> If the contents actually only contain some hash value, that signature for sure wont verify as a PKCS#7 container is expected. M_Borg wrote: > 78 0 obj > <</Filter/Adobe.PPKLite > [...] > /Contents < smaller_hash_value > > [...] > /SubFilter/adbe.x509.rsa_sha1 > /ByteRange [0 115798 116320 8742 ]>> If the contents actually only contain some hash value, that signature for sure wont verify as a PKCS#1 container is expected. Is there a special reason you create PKCS#1 signatures? As ISO 32000-1:2008 states, the format for encoding signature values should be adbe.pkcs7.detached. Regards, Michael. -- View this message in context: http://old.nabble.com/IText-Approval-Signature-Signing-Always-Reported-as-Corrupted-tp28377946p28378274.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ 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/
