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.
|
|
|
|
*/
|
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
'use strict';
|
2016-04-09 04:15:48 +09:00
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
var pdfjsLib = require('./pdfjs.js');
|
2017-08-01 21:11:28 +09:00
|
|
|
var pdfjsWebPDFViewer = require('./pdf_viewer.js');
|
2017-08-01 21:13:49 +09:00
|
|
|
var pdfjsWebPDFSinglePageViewer = require('./pdf_single_page_viewer');
|
2017-02-09 07:32:15 +09:00
|
|
|
var pdfjsWebPDFPageView = require('./pdf_page_view.js');
|
|
|
|
var pdfjsWebPDFLinkService = require('./pdf_link_service.js');
|
|
|
|
var pdfjsWebTextLayerBuilder = require('./text_layer_builder.js');
|
|
|
|
var pdfjsWebAnnotationLayerBuilder = require('./annotation_layer_builder.js');
|
|
|
|
var pdfjsWebPDFHistory = require('./pdf_history.js');
|
|
|
|
var pdfjsWebPDFFindController = require('./pdf_find_controller.js');
|
|
|
|
var pdfjsWebUIUtils = require('./ui_utils.js');
|
|
|
|
var pdfjsWebDownloadManager = require('./download_manager.js');
|
2017-05-04 10:05:53 +09:00
|
|
|
var pdfjsWebGenericL10n = require('./genericl10n.js');
|
2016-03-29 06:44:27 +09:00
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
var PDFJS = pdfjsLib.PDFJS;
|
2014-10-01 02:22:38 +09:00
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
PDFJS.PDFViewer = pdfjsWebPDFViewer.PDFViewer;
|
2017-08-01 21:13:49 +09:00
|
|
|
PDFJS.PDFSinglePageViewer = pdfjsWebPDFSinglePageViewer.PDFSinglePageViewer;
|
2017-02-09 07:32:15 +09:00
|
|
|
PDFJS.PDFPageView = pdfjsWebPDFPageView.PDFPageView;
|
|
|
|
PDFJS.PDFLinkService = pdfjsWebPDFLinkService.PDFLinkService;
|
2017-09-12 21:29:23 +09:00
|
|
|
PDFJS.SimpleLinkService = pdfjsWebPDFLinkService.SimpleLinkService;
|
2017-02-09 07:32:15 +09:00
|
|
|
PDFJS.TextLayerBuilder = pdfjsWebTextLayerBuilder.TextLayerBuilder;
|
|
|
|
PDFJS.DefaultTextLayerFactory =
|
|
|
|
pdfjsWebTextLayerBuilder.DefaultTextLayerFactory;
|
|
|
|
PDFJS.AnnotationLayerBuilder =
|
|
|
|
pdfjsWebAnnotationLayerBuilder.AnnotationLayerBuilder;
|
|
|
|
PDFJS.DefaultAnnotationLayerFactory =
|
|
|
|
pdfjsWebAnnotationLayerBuilder.DefaultAnnotationLayerFactory;
|
|
|
|
PDFJS.PDFHistory = pdfjsWebPDFHistory.PDFHistory;
|
|
|
|
PDFJS.PDFFindController = pdfjsWebPDFFindController.PDFFindController;
|
|
|
|
PDFJS.EventBus = pdfjsWebUIUtils.EventBus;
|
2015-04-27 23:04:11 +09:00
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
PDFJS.DownloadManager = pdfjsWebDownloadManager.DownloadManager;
|
|
|
|
PDFJS.ProgressBar = pdfjsWebUIUtils.ProgressBar;
|
2017-05-04 10:05:53 +09:00
|
|
|
PDFJS.GenericL10n = pdfjsWebGenericL10n.GenericL10n;
|
|
|
|
PDFJS.NullL10n = pdfjsWebUIUtils.NullL10n;
|
2016-04-09 02:34:27 +09:00
|
|
|
|
2017-02-09 07:32:15 +09:00
|
|
|
exports.PDFJS = PDFJS;
|