Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
normal: 'Roboto-Regular.ttf',
bold: 'Roboto-Medium.ttf',
italics: 'Roboto-Italic.ttf',
bolditalics: 'Roboto-Medium.ttf',
},
RobotoMono: {
normal: 'RobotoMono-Regular.ttf',
bold: 'RobotoMono-Regular.ttf',
italics: 'RobotoMono-Regular.ttf',
bolditalics: 'RobotoMono-Regular.ttf',
},
};
// pdfMake.vfs = pdfFonts.pdfMake.vfs;
pdfMake.vfs = pdfFonts;
pdfMake.createPdf(finalDocDef).open();
}