|
|
@ -299,12 +299,8 @@ var PDFViewerApplication = { |
|
|
|
get supportsPrinting() { |
|
|
|
get supportsPrinting() { |
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
var canvas = document.createElement('canvas'); |
|
|
|
var value = 'mozPrintCallback' in canvas; |
|
|
|
var value = 'mozPrintCallback' in canvas; |
|
|
|
// shadow
|
|
|
|
|
|
|
|
Object.defineProperty(this, 'supportsPrinting', { value: value, |
|
|
|
return PDFJS.shadow(this, 'supportsPrinting', value); |
|
|
|
enumerable: true, |
|
|
|
|
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return value; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
get supportsFullscreen() { |
|
|
|
get supportsFullscreen() { |
|
|
@ -319,11 +315,7 @@ var PDFViewerApplication = { |
|
|
|
support = false; |
|
|
|
support = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(this, 'supportsFullscreen', { value: support, |
|
|
|
return PDFJS.shadow(this, 'supportsFullscreen', support); |
|
|
|
enumerable: true, |
|
|
|
|
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return support; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
get supportsIntegratedFind() { |
|
|
|
get supportsIntegratedFind() { |
|
|
@ -332,11 +324,8 @@ var PDFViewerApplication = { |
|
|
|
//#else
|
|
|
|
//#else
|
|
|
|
// support = FirefoxCom.requestSync('supportsIntegratedFind');
|
|
|
|
// support = FirefoxCom.requestSync('supportsIntegratedFind');
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
Object.defineProperty(this, 'supportsIntegratedFind', { value: support, |
|
|
|
|
|
|
|
enumerable: true, |
|
|
|
return PDFJS.shadow(this, 'supportsIntegratedFind', support); |
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return support; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
get supportsDocumentFonts() { |
|
|
|
get supportsDocumentFonts() { |
|
|
@ -345,11 +334,8 @@ var PDFViewerApplication = { |
|
|
|
//#else
|
|
|
|
//#else
|
|
|
|
// support = FirefoxCom.requestSync('supportsDocumentFonts');
|
|
|
|
// support = FirefoxCom.requestSync('supportsDocumentFonts');
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
Object.defineProperty(this, 'supportsDocumentFonts', { value: support, |
|
|
|
|
|
|
|
enumerable: true, |
|
|
|
return PDFJS.shadow(this, 'supportsDocumentFonts', support); |
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return support; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
get supportsDocumentColors() { |
|
|
|
get supportsDocumentColors() { |
|
|
@ -358,20 +344,14 @@ var PDFViewerApplication = { |
|
|
|
//#else
|
|
|
|
//#else
|
|
|
|
// support = FirefoxCom.requestSync('supportsDocumentColors');
|
|
|
|
// support = FirefoxCom.requestSync('supportsDocumentColors');
|
|
|
|
//#endif
|
|
|
|
//#endif
|
|
|
|
Object.defineProperty(this, 'supportsDocumentColors', { value: support, |
|
|
|
|
|
|
|
enumerable: true, |
|
|
|
return PDFJS.shadow(this, 'supportsDocumentColors', support); |
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return support; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
get loadingBar() { |
|
|
|
get loadingBar() { |
|
|
|
var bar = new ProgressBar('#loadingBar', {}); |
|
|
|
var bar = new ProgressBar('#loadingBar', {}); |
|
|
|
Object.defineProperty(this, 'loadingBar', { value: bar, |
|
|
|
|
|
|
|
enumerable: true, |
|
|
|
return PDFJS.shadow(this, 'loadingBar', bar); |
|
|
|
configurable: true, |
|
|
|
|
|
|
|
writable: false }); |
|
|
|
|
|
|
|
return bar; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//#if (FIREFOX || MOZCENTRAL)
|
|
|
|
//#if (FIREFOX || MOZCENTRAL)
|
|
|
|