The dashboard engine runs headless on Node.js — a dashboard can be rendered and exported to PDF without a browser.

Load and export to a file.
var Stimulsoft = require('stimulsoft-dashboards-js');

var report = Stimulsoft.Report.StiReport.createNewDashboard();
report.loadFile("Dashboard.mrt");

report.exportDocumentAsync(function (pdfData) {
    var buffer = Buffer.from(pdfData);
    require('fs').writeFileSync('./Dashboard.pdf', buffer);
}, Stimulsoft.Report.StiExportFormat.Pdf);

How it works. The same engine that powers the browser viewer runs on the server, so dashboards can be generated from schedulers or services.
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

Exporting a Dashboard to PDF

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.