fix(core): update
This commit is contained in:
		| @@ -150,12 +150,17 @@ export class SmartPdf { | |||||||
|         documentWidth: document.body.clientWidth, |         documentWidth: document.body.clientWidth, | ||||||
|       }; |       }; | ||||||
|     }); |     }); | ||||||
|  |     await page.setViewport({ | ||||||
|  |       width: 1920, | ||||||
|  |       height: documentHeight, | ||||||
|  |     }); | ||||||
|     const pdfBuffer = await page.pdf({ |     const pdfBuffer = await page.pdf({ | ||||||
|       height: documentHeight, |       height: documentHeight, | ||||||
|       width: 1920, |       width: 1920, | ||||||
|       printBackground: true, |       printBackground: true, | ||||||
|       displayHeaderFooter: false, |       displayHeaderFooter: false, | ||||||
|       scale: 1 |       scale: 1, | ||||||
|  |       pageRanges: '1' | ||||||
|     }); |     }); | ||||||
|     await page.close(); |     await page.close(); | ||||||
|     return { |     return { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user