empty second page ->

added small margin
pull/169/head
dm 2021-03-24 00:13:01 +01:00
parent 63d70c498a
commit 08b9bb4118
1 changed files with 2 additions and 1 deletions

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});
}