UNPKG

pdfmake

Version:

Client/server side PDF printing in pure JavaScript

18 lines (15 loc) • 494 B
var fontContainer = { standardFonts: [require('pdfkit/standard-fonts/Symbol')], fonts: { Symbol: { normal: 'Symbol' } } }; var _global = typeof window === 'object' ? window : typeof global === 'object' ? global : typeof self === 'object' ? self : this; if (typeof _global.pdfMake !== 'undefined' && typeof _global.pdfMake.addFontContainer !== 'undefined') { _global.pdfMake.addFontContainer(fontContainer); } if (typeof module !== 'undefined') { module.exports = fontContainer; }