pdfmake
pdfmake copied to clipboard
Generating PDFs in the browser does not work anymore with latest version
trafficstars
import pdfMake from 'pdfmake/build/pdfmake'
import pdfFonts from 'pdfmake/build/vfs_fonts'
pdfMake.addFonts(pdfFonts)
[...]
const res = pdfMake.createPdf(docDef) // works
res.download(fname) // throws