From 9c4e7857e32bf148bd55f4dec81a57057e0c6b4c Mon Sep 17 00:00:00 2001 From: Rafael Bardini Date: Tue, 3 Nov 2020 17:44:00 +0100 Subject: [PATCH] Set PDF media type to print --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index ad65945..15c6ef9 100644 --- a/index.js +++ b/index.js @@ -33,6 +33,8 @@ Handlebars.registerHelper('join', (arr, separator) => Handlebars.registerHelper('markdown', doc => micromark(doc)) +exports.pdfRenderOptions = { mediaType: 'print' } + exports.render = resume => { const template = fs.readFileSync(path.join(__dirname, 'resume.hbs'), 'utf-8') const css = fs.readFileSync(path.join(__dirname, 'style.css'), 'utf-8')