Is there a way to use digital signature on reports.js?

Stimulsoft Reports.JS discussion
Post Reply
mtecnic
Posts: 9
Joined: Wed Sep 29, 2021 7:48 am

Is there a way to use digital signature on reports.js?

Post by mtecnic »

Hello,
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
      );
But it doesn't work.
Thanks for your attention.
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Is there a way to use digital signature on reports.js?

Post by Lech Kulikowski »

Hello,

Unfortunately, Digital Signatures feature is not available in the JS product.

The Digital Signatures feature is available only in the NET engine.
On the Net, this is implemented through the use of the Windows CryptoApi system library. In JS there is no such built-in, only third-party libraries.

Thank you.
mtecnic
Posts: 9
Joined: Wed Sep 29, 2021 7:48 am

Re: Is there a way to use digital signature on reports.js?

Post by mtecnic »

Hello,
I will look what I can do with thid-party libraries,
Thanks for the quick response!
Andrew
Posts: 4104
Joined: Fri Jun 09, 2006 3:58 am

Re: Is there a way to use digital signature on reports.js?

Post by Andrew »

Hello,

You are welcome!
Post Reply