fix(core): update

This commit is contained in:
2019-04-10 15:12:54 +02:00
parent 9e3a69854f
commit 6d6eb9944a
4 changed files with 921 additions and 254 deletions

View File

@ -78,7 +78,10 @@ export class SmartPdf {
const pdfId = plugins.smartunique.shortId();
await page.pdf({
path: plugins.path.join(paths.pdfDir, `${pdfId}.pdf`),
format: 'A4'
format: 'A4',
printBackground: true,
displayHeaderFooter: false,
preferCSSPageSize: true
});
await page.close();
}