Increase the maximum size of the pdf.js canvas (#7207)

GitOrigin-RevId: 699c4ded7a783e37f655e05452943de7443f1012
This commit is contained in:
Alf Eaton 2022-03-25 09:31:29 +00:00 committed by Copybot
parent 755233dcdc
commit 74b76c853d

View file

@ -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)