From 74b76c853dfb5f8c515f0dddb0d1063d45907722 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 25 Mar 2022 09:31:29 +0000 Subject: [PATCH] Increase the maximum size of the pdf.js canvas (#7207) GitOrigin-RevId: 699c4ded7a783e37f655e05452943de7443f1012 --- .../web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js b/services/web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js index 6c91e38757..d373792aaa 100644 --- a/services/web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js +++ b/services/web/frontend/js/features/pdf-preview/util/pdf-js-wrapper.js @@ -44,6 +44,7 @@ export default class PDFJSWrapper { enableScripting: false, // default is false, but set explicitly to be sure enableXfa: false, // default is false (2021-10-12), but set explicitly to be sure renderInteractiveForms: false, + maxCanvasPixels: 8192 * 8192, // default is 4096 * 4096, increased for better resolution at high zoom levels }) linkService.setViewer(viewer)