Set PDF media type to print
This commit is contained in:
parent
6a39a05565
commit
9c4e7857e3
2
index.js
2
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')
|
||||
|
|
Loading…
Reference in New Issue