GroupDocs.Signature allows to get document history information about processed changes that include list of ProcessLog. Each history log record contains following information :
The following code snippet demonstrates how to obtain information about document historical changes and analyze them.
finalSignaturesignature=newSignature("sampleSigned.pdf");try/*JAVA: was using*/{IDocumentInfodocumentInfo=signature.getDocumentInfo();// display document process history information
System.out.print("Document Process logs information: count = "+documentInfo.getProcessLogs().size());for(ProcessLogprocessLog:documentInfo.getProcessLogs()){System.out.print(" - operation ["+processLog.getType()+"}] on "+processLog.getDate().toString()+"}. Succedded/Failed "+processLog.getSucceeded()+"/"+processLog.getFailed()+". Message: "+processLog.getMessage()+" : ");if(processLog.getSignatures()!=null){for(BaseSignaturelogSignature:processLog.getSignatures()){System.out.print("\t\t -"+logSignature.getSignatureType()+" #"+logSignature.getSignatureId()+" at "+logSignature.getTop()+" x "+logSignature.getLeft()+" pos;");}}}}catch(Exceptione){thrownewGroupDocsSignatureException(e.getMessage());}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples: