I was wondering if there was a way to use digital signature on reports.js, I tried doing the following:
Code: Select all
var settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
settings.useDigitalSignature = true;
settings.getCertificateFromCryptoUI = false;
settings.useLocalMachineCertificates = true;
settings.subjectNameString = "John Smith <johns@google.com>";
await report.exportDocumentAsync(
function (pdfData: any) {
// Save data to file
Stimulsoft.System.StiObject.saveAs(
pdfData,
"test.pdf",
"application/pdf"
);
},
Stimulsoft.Report.StiExportFormat.Pdf,
null,
settings
);
Thanks for your attention.