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];