This sample shows how to sign a PDF document with a key from Azure Key Vault in C# and VB.NET.
Docotic.Pdf library allows you to use non-exportable keys
from Azure to sign PDF documents. You need to implement IPdfSigner
interface and use it in
PdfSigningOptions.
This sample code automatically generates self-signed certificate for the provided Azure key. In real applications, you might want to use a CA signed certificate. You can also load a certificate from Key Vault secrets or Key Vault certificates.