mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Exposes all functional members via lib exports and use them in viewer.
This commit is contained in:
parent
1d12aed5ca
commit
1e3e14e6b2
25 changed files with 174 additions and 102 deletions
|
@ -17,14 +17,21 @@
|
|||
DefaultTextLayerFactory, AnnotationLayerBuilder, PDFHistory,
|
||||
DefaultAnnotationLayerFactory, DownloadManager, ProgressBar */
|
||||
|
||||
// Initializing PDFJS global object (if still undefined)
|
||||
if (typeof PDFJS === 'undefined') {
|
||||
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
||||
}
|
||||
|
||||
(function pdfViewerWrapper() {
|
||||
'use strict';
|
||||
|
||||
var root = this;
|
||||
if (!root.pdfjsLib) {
|
||||
Object.defineProperty(root, 'pdfjsLib', {
|
||||
get: function () {
|
||||
return root.pdfjsDistBuildPdf || root.pdfjsDistBuildPdfCombined ||
|
||||
root.pdfjsMainLoader;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
|
||||
//#include ui_utils.js
|
||||
//#include pdf_link_service.js
|
||||
//#include pdf_viewer.js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue