Cloud
Cloud-Dienstleistung für schnelle und effektive Analyse und Visualisierung von Daten für Ihr Business ohne eigene Applikationen zu erstellen oder zu programmieren.
var Stimulsoft = require('stimulsoft-reports-js');
Stimulsoft.Base.StiFontCollection.addFontFile('./Font/LongCang-Regular.ttf');
var report = new Stimulsoft.Report.StiReport();
report.loadFile('SimpleList.mrt');
report.renderAsync(() => {
var settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
settings.embeddedFonts = true;
report.exportDocumentAsync((pdfData) => {
fs.writeFileSync('./SimpleList.pdf', Buffer.from(pdfData));
}, Stimulsoft.Report.StiExportFormat.Pdf, null, settings);
});addFontFile registers an individual font file with the engine; combined with the embeddedFonts export setting, the font is baked into the PDF so the document looks the same on every machine.