Increase the maxCanvasPixels value to 2 ** 25
This commit is contained in:
parent
ad791cc462
commit
a4aca8a20d
@ -214,7 +214,7 @@ const defaultOptions = {
|
|||||||
},
|
},
|
||||||
maxCanvasPixels: {
|
maxCanvasPixels: {
|
||||||
/** @type {number} */
|
/** @type {number} */
|
||||||
value: 16777216,
|
value: 2 ** 25,
|
||||||
kind: OptionKind.VIEWER,
|
kind: OptionKind.VIEWER,
|
||||||
},
|
},
|
||||||
forcePageColors: {
|
forcePageColors: {
|
||||||
|
|||||||
@ -74,7 +74,7 @@ import { XfaLayerBuilder } from "./xfa_layer_builder.js";
|
|||||||
* for annotation icons. Include trailing slash.
|
* for annotation icons. Include trailing slash.
|
||||||
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
||||||
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
||||||
* CSS-only zooming. The default value is 4096 * 4096 (16 mega-pixels).
|
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
||||||
* @property {Object} [pageColors] - Overwrites background and foreground colors
|
* @property {Object} [pageColors] - Overwrites background and foreground colors
|
||||||
* with user defined ones in order to improve readability in high contrast
|
* with user defined ones in order to improve readability in high contrast
|
||||||
* mode.
|
* mode.
|
||||||
@ -162,7 +162,7 @@ class PDFPageView {
|
|||||||
this.imageResourcesPath = options.imageResourcesPath || "";
|
this.imageResourcesPath = options.imageResourcesPath || "";
|
||||||
this.maxCanvasPixels =
|
this.maxCanvasPixels =
|
||||||
options.maxCanvasPixels ??
|
options.maxCanvasPixels ??
|
||||||
(AppOptions.getCompat("maxCanvasPixels") || 16777216);
|
(AppOptions.getCompat("maxCanvasPixels") || 2 ** 25);
|
||||||
this.pageColors = options.pageColors || null;
|
this.pageColors = options.pageColors || null;
|
||||||
|
|
||||||
this.eventBus = options.eventBus;
|
this.eventBus = options.eventBus;
|
||||||
|
|||||||
@ -117,7 +117,7 @@ function isValidAnnotationEditorMode(mode) {
|
|||||||
* landscape pages upon printing. The default is `false`.
|
* landscape pages upon printing. The default is `false`.
|
||||||
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
* @property {number} [maxCanvasPixels] - The maximum supported canvas size in
|
||||||
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
* total pixels, i.e. width * height. Use `-1` for no limit, or `0` for
|
||||||
* CSS-only zooming. The default value is 4096 * 4096 (16 mega-pixels).
|
* CSS-only zooming. The default value is 4096 * 8192 (32 mega-pixels).
|
||||||
* @property {IL10n} [l10n] - Localization service.
|
* @property {IL10n} [l10n] - Localization service.
|
||||||
* @property {boolean} [enablePermissions] - Enables PDF document permissions,
|
* @property {boolean} [enablePermissions] - Enables PDF document permissions,
|
||||||
* when they exist. The default value is `false`.
|
* when they exist. The default value is `false`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user