Page 1 of 1

Digital Signature not being displayed in PDF.

Posted: Thu Jul 16, 2020 1:21 pm
by divs
I am using below code (.net core2.1) on my local machine to test the digital signature (self signed), but not getting digital signature printed on my pdf, event I am not getting any error.

FileStream fs = new FileStream(@"D:\certificate\test.pfx", FileMode.Open);
byte[] buf = new byte[fs.Length];
fs.Read(buf, 0, buf.Length);
StiPdfExportSettings settings = new StiPdfExportSettings();
settings.UseDigitalSignature = true;
settings.GetCertificateFromCryptoUI = false;
settings.SubjectNameString = "test";
settings.UseLocalMachineCertificates = false;
settings.CertificateData = buf;
settings.CertificatePassword = "test@123;
report.ExportDocument(StiExportFormat.Pdf, pdfPathToSaveReportAs, settings);

and also I tried secondary approach as mentioned in below code, still digital signature is not printed in pdf and not getting any error.

StiPdfExportSettings settings = new StiPdfExportSettings();
settings.UseDigitalSignature = true;
settings.GetCertificateFromCryptoUI = false;
settings.SubjectNameString = "test";
settings.UseLocalMachineCertificates = true;
report.ExportDocument(StiExportFormat.Pdf, pdfPathToSaveReportAs, settings);

Please look into this.

Re: Digital Signature not being displayed in PDF.

Posted: Mon Jul 20, 2020 7:38 am
by Lech Kulikowski
Hello,

Unfortunately, Digital Signature in PDF is not available for the NET Core version.

Thank you.

Re: Digital Signature not being displayed in PDF.

Posted: Mon Jul 20, 2020 9:57 am
by divs
Lech Kulikowski wrote: Mon Jul 20, 2020 7:38 am Hello,

Unfortunately, Digital Signature in PDF is not available for the NET Core version.

Thank you.
Thanks for the information.

Re: Digital Signature not being displayed in PDF.

Posted: Mon Jul 20, 2020 1:06 pm
by Andrew
You are welcome! Sorry for not supporting this feature.
Thank you.