Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: set page to null
Marc Seitz7ebff96546ff
diff --git a/pages/api/mupdf/convert-page.ts b/pages/api/mupdf/convert-page.tsindex 9cb89a59..3c078441 100644--- a/pages/api/mupdf/convert-page.ts+++ b/pages/api/mupdf/convert-page.ts@@ -86,6 +86,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {});buffer = Buffer.alloc(0);+ page = null;if (!data || !type) {throw new Error(`Failed to upload document page ${pageNumber}`);