better pdf archiving

This commit is contained in:
Daniel 2023-06-13 18:19:44 +03:30
parent 5b0e0b4208
commit 41446f5bd4
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,8 @@ export default async function archive(
await Promise.all([
page.pdf({
path: archivePath + ".pdf",
format: "a4",
width: "1366px",
height: "1931px",
printBackground: true,
margin: { top: "15px", bottom: "15px" },
}),

View File

@ -73,8 +73,6 @@ export default async function postLink(
})),
},
title,
screenshotPath: "",
pdfPath: "",
},
include: { tags: true, collection: true },
});