Page 1 of 1

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

Posted: Wed Sep 29, 2021 7:52 am
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.

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

Posted: Wed Sep 29, 2021 8:18 pm
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.

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

Posted: Thu Sep 30, 2021 7:58 am
by mtecnic
Hello,
I will look what I can do with thid-party libraries,
Thanks for the quick response!

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

Posted: Fri Oct 01, 2021 7:11 am
by Andrew
Hello,

You are welcome!