better pdf archiving
This commit is contained in:
parent
5b0e0b4208
commit
41446f5bd4
|
@ -34,7 +34,8 @@ export default async function archive(
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
page.pdf({
|
page.pdf({
|
||||||
path: archivePath + ".pdf",
|
path: archivePath + ".pdf",
|
||||||
format: "a4",
|
width: "1366px",
|
||||||
|
height: "1931px",
|
||||||
printBackground: true,
|
printBackground: true,
|
||||||
margin: { top: "15px", bottom: "15px" },
|
margin: { top: "15px", bottom: "15px" },
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -73,8 +73,6 @@ export default async function postLink(
|
||||||
})),
|
})),
|
||||||
},
|
},
|
||||||
title,
|
title,
|
||||||
screenshotPath: "",
|
|
||||||
pdfPath: "",
|
|
||||||
},
|
},
|
||||||
include: { tags: true, collection: true },
|
include: { tags: true, collection: true },
|
||||||
});
|
});
|
||||||
|
|
Ŝarĝante…
Reference in New Issue