From 41446f5bd425f34949d3f026b438bf87fe8e1e04 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 13 Jun 2023 18:19:44 +0330 Subject: [PATCH] better pdf archiving --- lib/api/archive.ts | 3 ++- lib/api/controllers/links/postLink.ts | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/api/archive.ts b/lib/api/archive.ts index 6aaa5bd..c55aa4c 100644 --- a/lib/api/archive.ts +++ b/lib/api/archive.ts @@ -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" }, }), diff --git a/lib/api/controllers/links/postLink.ts b/lib/api/controllers/links/postLink.ts index 6d07932..d518595 100644 --- a/lib/api/controllers/links/postLink.ts +++ b/lib/api/controllers/links/postLink.ts @@ -73,8 +73,6 @@ export default async function postLink( })), }, title, - screenshotPath: "", - pdfPath: "", }, include: { tags: true, collection: true }, });