blikblum/pdfmake-utils

Create LazyPdfMake

Opened this issue · 0 comments

Add a class that handles loading assets as well the pdfMake bundle

Should accept fonts and files as params and a ready method

Example:

const fonts = {
  Roboto: {italics: '[url]'}
}
const pdfMake = new LazyPdfMake({fonts})
await pdfMake.ready()
pdfMake.instance // actual pdfMake
pdfMake.fileExists('[filePath]')