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