2014-10-01 02:22:38 +09:00
|
|
|
/* Copyright 2014 Mozilla Foundation
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
/*jshint globalstrict: false */
|
2015-04-28 00:25:32 +09:00
|
|
|
/* globals PDFJS, PDFViewer, PDFPageView, TextLayerBuilder, PDFLinkService,
|
2015-12-17 20:54:53 +09:00
|
|
|
DefaultTextLayerFactory, AnnotationLayerBuilder, PDFHistory,
|
2016-02-15 04:44:00 +09:00
|
|
|
DefaultAnnotationLayerFactory, getFileName, DownloadManager,
|
|
|
|
ProgressBar */
|
2014-10-01 02:22:38 +09:00
|
|
|
|
|
|
|
// Initializing PDFJS global object (if still undefined)
|
|
|
|
if (typeof PDFJS === 'undefined') {
|
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
|
|
}
|
|
|
|
|
|
|
|
(function pdfViewerWrapper() {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//#include ui_utils.js
|
2015-04-28 00:25:32 +09:00
|
|
|
//#include pdf_link_service.js
|
2014-10-01 02:22:38 +09:00
|
|
|
//#include pdf_viewer.js
|
2015-04-27 23:04:11 +09:00
|
|
|
//#include pdf_history.js
|
2016-02-15 04:44:00 +09:00
|
|
|
//#include download_manager.js
|
2014-10-01 02:22:38 +09:00
|
|
|
|
|
|
|
PDFJS.PDFViewer = PDFViewer;
|
2014-12-20 09:10:57 +09:00
|
|
|
PDFJS.PDFPageView = PDFPageView;
|
2015-04-28 00:25:32 +09:00
|
|
|
PDFJS.PDFLinkService = PDFLinkService;
|
2014-12-20 09:10:57 +09:00
|
|
|
PDFJS.TextLayerBuilder = TextLayerBuilder;
|
|
|
|
PDFJS.DefaultTextLayerFactory = DefaultTextLayerFactory;
|
2015-12-17 20:54:53 +09:00
|
|
|
PDFJS.AnnotationLayerBuilder = AnnotationLayerBuilder;
|
|
|
|
PDFJS.DefaultAnnotationLayerFactory = DefaultAnnotationLayerFactory;
|
2015-04-27 23:04:11 +09:00
|
|
|
PDFJS.PDFHistory = PDFHistory;
|
|
|
|
|
|
|
|
PDFJS.getFileName = getFileName;
|
2016-02-15 04:44:00 +09:00
|
|
|
PDFJS.DownloadManager = DownloadManager;
|
2015-03-15 04:07:17 +09:00
|
|
|
PDFJS.ProgressBar = ProgressBar;
|
2014-10-01 02:22:38 +09:00
|
|
|
}).call((typeof window === 'undefined') ? this : window);
|