From 37c752c2ae4ac5c10cd744e33243163f69f23e23 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 12 Nov 2019 15:41:58 +0100 Subject: [PATCH] fix(core): update --- ts/smartpdf.classes.smartpdf.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/smartpdf.classes.smartpdf.ts b/ts/smartpdf.classes.smartpdf.ts index 6d323ea..4857f91 100644 --- a/ts/smartpdf.classes.smartpdf.ts +++ b/ts/smartpdf.classes.smartpdf.ts @@ -78,7 +78,10 @@ export class SmartPdf { } const pdfBuffer = await page.pdf({ - format: 'A4' + format: 'A4', + printBackground: true, + displayHeaderFooter: false, + preferCSSPageSize: true }); await page.close(); delete this._candidates[pdfCandidate.pdfId];