This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PdfMake from 'pdfmake'; | |
import fonts from 'pdfmake/build/vfs_fonts'; | |
import streamBuffers from 'stream-buffers'; | |
// use picker for meteor server side routes | |
Picker.route('/pdf', function(params, req, res, next) { | |
// define the content of the pdf document | |
const documentDefinition = {content: 'Hello World!'}; |