empty second page ->

added small margin
This commit is contained in:
dm
2021-03-24 00:13:01 +01:00
parent 63d70c498a
commit 08b9bb4118

View File

@@ -39,7 +39,8 @@ module.exports = {
await page.emulateMediaType('screen');
if (type=="pdf") {
await page.pdf({path: export_path, printBackground: true, width: space.width+'px', height: space.height+'px' });
let margin = 2;
await page.pdf({path: export_path, printBackground: true, width: space.width+margin+'px', height: space.height+margin+'px' });
}else{
await page.screenshot({path: export_path, printBackground: true});
}