From 1add9bc1310b924a7de1d9adf65751b4004982a9 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Thu, 1 Jun 2023 15:41:43 +0200 Subject: [PATCH] Fix canvasMaxAreaInBytes type Fixes #16503 --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index efa18944b..1b3ba67a7 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -206,7 +206,7 @@ if (typeof PDFJSDev === "undefined") { * `OffscreenCanvas` in the worker. Primarily used to improve performance of * image conversion/rendering. * The default value is `true` in web environments and `false` in Node.js. - * @property {boolean} [canvasMaxAreaInBytes] - The integer value is used to + * @property {number} [canvasMaxAreaInBytes] - The integer value is used to * know when an image must be resized (uses `OffscreenCanvas` in the worker). * If it's -1 then a possibly slow algorithm is used to guess the max value. * @property {boolean} [disableFontFace] - By default fonts are converted to