fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-12 15:41:58 +01:00
parent b088d26e6f
commit 37c752c2ae

View File

@ -78,7 +78,10 @@ export class SmartPdf {
} }
const pdfBuffer = await page.pdf({ const pdfBuffer = await page.pdf({
format: 'A4' format: 'A4',
printBackground: true,
displayHeaderFooter: false,
preferCSSPageSize: true
}); });
await page.close(); await page.close();
delete this._candidates[pdfCandidate.pdfId]; delete this._candidates[pdfCandidate.pdfId];