minor changes and improvements

This commit is contained in:
Daniel
2023-06-12 01:58:37 +03:30
parent 06a21a39aa
commit 099784699a
8 changed files with 36 additions and 277 deletions
+6 -1
View File
@@ -32,7 +32,12 @@ export default async function archive(
if (linkExists) {
await Promise.all([
page.pdf({ path: archivePath + ".pdf", format: "a4" }),
page.pdf({
path: archivePath + ".pdf",
format: "a4",
printBackground: true,
margin: { top: "15px", bottom: "15px" },
}),
page.screenshot({ fullPage: true, path: archivePath + ".png" }),
]);
}