From 6b5ddf7e4f6db55bfcbbf5b21f4165c9824241dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Wei=C3=9Fenfels?= <10491533+tim-we@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:57:07 +0100 Subject: [PATCH] Add types for document size --- types/main.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/main.d.ts b/types/main.d.ts index eb7e7eb..b401c38 100644 --- a/types/main.d.ts +++ b/types/main.d.ts @@ -68,6 +68,16 @@ declare module "pdfjs" { */ info: DocumentProperties & { id: string }; + /** + * The documents width. + */ + width: number; + + /** + * The documents height. + */ + height: number; + /** * Document is a Readable stream and can therefore piped into other streams * @param dest destination