Obtain document history information

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Signature MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-signature -- dnx GroupDocs.Signature.Mcp --yes
Folders, licensing and more →

GroupDocs.Signature allows to get document history information about processed changes that include list of ProcessLog. Each history log record contains following information :

  • date/time of processed change.
  • type of document process change. See ProcessType
  • description of change
  • quantity of succeeded and failed signatures

Analyze document process history information

The following code snippet demonstrates how to obtain information about document historical changes and analyze them.

final Signature signature = new Signature("sampleSigned.pdf");
	try /*JAVA: was using*/
	{
		IDocumentInfo documentInfo = signature.getDocumentInfo();
		// display document process history information
		System.out.print("Document Process logs information: count = "+documentInfo.getProcessLogs().size());
		for (ProcessLog processLog : 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 (BaseSignature logSignature : processLog.getSignatures())
				{
					System.out.print("\t\t -"+logSignature.getSignatureType()+" #"+logSignature.getSignatureId()+" at "+logSignature.getTop()+" x "+logSignature.getLeft()+" pos;");
				}
			}
		}
	} catch (Exception e){
		throw new GroupDocsSignatureException(e.getMessage());
	}

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured Java library we provide simple, but powerful free Apps.

You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.