diff --git a/web/app.js b/web/app.js index 6a5941839..dfef5234a 100644 --- a/web/app.js +++ b/web/app.js @@ -875,7 +875,12 @@ const PDFViewerApplication = { }, get supportsPrinting() { - return PDFPrintServiceFactory.supportsPrinting; + return shadow( + this, + "supportsPrinting", + AppOptions.get("supportsPrinting") && + PDFPrintServiceFactory.supportsPrinting + ); }, get supportsFullscreen() { diff --git a/web/app_options.js b/web/app_options.js index c768603ed..133df8dae 100644 --- a/web/app_options.js +++ b/web/app_options.js @@ -136,6 +136,11 @@ const defaultOptions = { value: true, kind: OptionKind.BROWSER, }, + supportsPrinting: { + /** @type {boolean} */ + value: true, + kind: OptionKind.BROWSER, + }, toolbarDensity: { /** @type {number} */ value: 0, // 0 = "normal", 1 = "compact", 2 = "touch"