Hello,
I’m using this code to
extract signature data from PDF files, and it works except when it’s a PDF file
signed with Adobe Lifecyle.
In those files the code do not detect any signature, I have attached the signed file where this problem occurred.
What could be the reason
for this to happen?
foreach (Aspose.Pdf.InteractiveFeatures.Forms.Field field in pdfDocument.Form)
{
Aspose.Pdf.InteractiveFeatures.Forms.SignatureField sf = field as Aspose.Pdf.InteractiveFeatures.Forms.SignatureField;
if (sf != null)
{
FileSignature fileSignature = new FileSignature();
fileSignature.SignDate = sf.Signature.Date.ToString();
Stream cerStream = sf.ExtractCertificate();
if (cerStream != null)
{
using (cerStream)
{
int size = (int)cerStream.Length;
byte[] rawData = new byte[size];
size = cerStream.Read(rawData, 0, size);
X509Certificate2 cert = new X509Certificate2();
cert.Import(rawData);
fileSignature.SignerName = cert.GetNameInfo(X509NameType.SimpleName, false);
}
}
fileSignatures.Add(fileSignature);
}
}
Hi Mario,
Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for .NET 11.5.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40723 and also linked your request to it. We will keep you updated via this thread regarding the issue status.
We are sorry for the inconvenience caused.
Hi,
Can you please give me an estimation about when could this problem will be solved, because we have to warn our clients for how long they need to wait for the fix.
Thanks
Hi Mario,
Thanks for your inquriy. The issue is recently logged and it is still pending for investigation. As soon as issue investigation is completed then we will be in good position to share and ETA with your. We will keep you updated about the issue resolution progress.
We are sorry for the inconvenience caused.
Best Regards,