Hello!
We have an issue with extracting the certificate from PDF file. PDF file to read is passed as Base64 encoded string.
Code snippet:
using (PdfFileSignature pdfFileSignature = new PdfFileSignature())
{
using (var pdfContent = new MemoryStream(Convert.FromBase64String(pdfFile))
{
pdfFileSignature.BindPdf(pdfContent);
var sigNames = pdfFileSignature.GetSignNames();
//This throws an error 'Cannot find object or property'
Stream cerStream = pdfFileSignature.ExtractCertificate(sigName);
}
}
Certificate is visible in Acrobat Reader.
PDF_sample.pdf (143.9 KB)
We are using Aspose.PDF version 23.2.
Can you, please, help with this problem?
Best regards!