mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
Merge pull request #19816 from Snuffleupagus/bug-1957401
Add a "supportsPrinting" viewer-option (bug 1957401)
This commit is contained in:
commit
63e6566597
2 changed files with 11 additions and 1 deletions
|
@ -875,7 +875,12 @@ const PDFViewerApplication = {
|
|||
},
|
||||
|
||||
get supportsPrinting() {
|
||||
return PDFPrintServiceFactory.supportsPrinting;
|
||||
return shadow(
|
||||
this,
|
||||
"supportsPrinting",
|
||||
AppOptions.get("supportsPrinting") &&
|
||||
PDFPrintServiceFactory.supportsPrinting
|
||||
);
|
||||
},
|
||||
|
||||
get supportsFullscreen() {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue