Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add numPages to documentdata

Marc Seitze0aa99b97dc2
diff --git a/lib/documents/create-document.ts b/lib/documents/create-document.ts
index 0d320536..845c604d 100644
--- a/lib/documents/create-document.ts
+++ b/lib/documents/create-document.ts
@@ -7,6 +7,7 @@ export type DocumentData = {
contentType: string; // actual file mime type
supportedFileType: string; // papermark types: "pdf", "sheet", "docs", "slides", "map", "zip"
fileSize: number | undefined; // file size in bytes
+ numPages?: number;
};
export const createDocument = async ({