Skip to content

Implement a custom signer based on the Bouncy Castle C# API and use a custom digest calculator to calculate a document hash.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/pdf-document-api-custom-signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Document API - Use a Custom Signer Class to Apply Signatures to a PDF Document

The PDF Document API allows you to replace a built-in PKCS#7 signature builder (the Pkcs7Signer class) with a custom signer.

The code sample project shows how to create a Pkcs7SignerBase descendant to implement a custom signer based on the Bouncy Castle C# API and calculate a document hash using a custom digest calculator.

To sign a PDF file using an external web service, retrieve a certificate/certificate chain from the service, and calculate the document hash. Then, sign the calculated document hash with a private key obtained from the external service in the SignDigest method of the BouncyCastleSigner class.

Important

The Universal Subscription or Office File API Subscription is required to use this example in production code. Please refer to the following page for pricing information: DevExpress Subscriptions

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Implement a custom signer based on the Bouncy Castle C# API and use a custom digest calculator to calculate a document hash.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •