Hello,
I am evaluating the GroupDocs.Signature product before purchasing, I am trying to generate a signed PDF signed with Azure Key Vault… I am following the documentation provided, but when I call the sign method I am getting the exception below. The PDF output is still created, but the Signature shows as invalid. Can you please let me know what I might be missing? Thanks!
Sign document error: The signature length specified in the DefaultSignatureLength parameter is less than the length of the received signature. Current signature length: 5620. Set the DefaultSignatureLength parameter to a value greater than this value
var azureSigner = new AzureSigner(keyVaultUrl, certificateName, certificateKeyId, tenantId, clientId, clientSecret);
options.CustomSignHash = azureSigner;
options.Signature.Certificate = azureSigner.GetPublicCertificateFromAzureStorage();
using (var signature = new Signature(sourcePdfPath))
{
try
{
signature.Sign(outputPdfPath, options);
}
catch (Exception ex)
{
Console.WriteLine($"Error Signing: {ex.Message}");
}
}