Hey, I'm running into the same issue where some pdfs are reported as modified, even when they haven't been modified.
Here's a sample: https://docs.google.com/file/d/0B_Yi6q-Fwp_Ad3VWcWxES2tFeVk/edit?usp=sharing <https://docs.google.com/file/d/0B_Yi6q-Fwp_Ad3VWcWxES2tFeVk/edit?usp=sharing> Adobe acrobat shows this pdf is unmodified. Interestingly, the equivalent code in itextsharp works correctly and can identify whether the pdf has been modified or not. I can post the working itextsharp code if that helps. The patch by Alfonso Massa mentioned above is commented-out in the source tree. I tried uncommenting his code but then I get a npe. I'm using the latest itext jars the sourceforge download site: itextpdf-5.4.0.jar bcpkix-jdk15on-1.48.jar bcprov-jdk15on-1.48.jar Any hints or workarounds would be awesome. public class verify { private static String filepath = "test.pdf"; public static void main(String[] args) throws Exception { Security.addProvider (new BouncyCastleProvider ()); PdfReader reader = new PdfReader(filepath);//args[0]); AcroFields af = reader.getAcroFields(); ArrayList<String> names = af.getSignatureNames(); for (String name : names) { PdfPKCS7 pk = af.verifySignature(name); System.out.println("Revision modified: " + !pk.verify()); } } } -- View this message in context: http://itext-general.2136553.n4.nabble.com/iText-PdfPKCS7-verify-somethig-wrong-tp4657188p4657990.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ 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