Set PDF media type to print

This commit is contained in:
Rafael Bardini 2020-11-03 17:44:00 +01:00
parent 6a39a05565
commit 9c4e7857e3
1 changed files with 2 additions and 0 deletions

View File

@ -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')