I use 'reader.AcroFields.SignatureCoversWholeDocument("sjensign")' to check 
if "sjensign" covers the whole document for your attachment. 
 it's  return false,but adobe reader tells it is valid. 
SO,how to check if modified after "sjensign" signature?
my code :

PdfPKCS7 pkcs = reader.AcroFields.VerifySignature("sjensign");
if (pkcs.Verify() //return ture
     && 
     reader.AcroFields.SignatureCoversWholeDocument("siensign") //return
false
     ){
     //it was not modified after "sjensign" signature
}else{
     //it was modified after "sjensign" signature.
}

the file is your attachment.
if use my modified file,I got the same result. 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Is-this-a-bug-about-itext-verify-signature-tp4658840p4658842.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&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