Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

better pdf archiving

Daniel41446f5bd425
diff --git a/lib/api/archive.ts b/lib/api/archive.ts
index 6aaa5bde..c55aa4cc 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 6d079328..d5185959 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 },
});