pdf_viewer.component.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright 2017 Mozilla Foundation
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. 'use strict';
  16. var pdfjsLib = require('./pdfjs.js');
  17. var pdfjsWebPDFViewer = require('./pdf_viewer.js');
  18. var pdfjsWebPDFPageView = require('./pdf_page_view.js');
  19. var pdfjsWebPDFLinkService = require('./pdf_link_service.js');
  20. var pdfjsWebTextLayerBuilder = require('./text_layer_builder.js');
  21. var pdfjsWebAnnotationLayerBuilder = require('./annotation_layer_builder.js');
  22. var pdfjsWebPDFHistory = require('./pdf_history.js');
  23. var pdfjsWebPDFFindController = require('./pdf_find_controller.js');
  24. var pdfjsWebUIUtils = require('./ui_utils.js');
  25. var pdfjsWebDownloadManager = require('./download_manager.js');
  26. var PDFJS = pdfjsLib.PDFJS;
  27. PDFJS.PDFViewer = pdfjsWebPDFViewer.PDFViewer;
  28. PDFJS.PDFPageView = pdfjsWebPDFPageView.PDFPageView;
  29. PDFJS.PDFLinkService = pdfjsWebPDFLinkService.PDFLinkService;
  30. PDFJS.TextLayerBuilder = pdfjsWebTextLayerBuilder.TextLayerBuilder;
  31. PDFJS.DefaultTextLayerFactory = pdfjsWebTextLayerBuilder.DefaultTextLayerFactory;
  32. PDFJS.AnnotationLayerBuilder = pdfjsWebAnnotationLayerBuilder.AnnotationLayerBuilder;
  33. PDFJS.DefaultAnnotationLayerFactory = pdfjsWebAnnotationLayerBuilder.DefaultAnnotationLayerFactory;
  34. PDFJS.PDFHistory = pdfjsWebPDFHistory.PDFHistory;
  35. PDFJS.PDFFindController = pdfjsWebPDFFindController.PDFFindController;
  36. PDFJS.EventBus = pdfjsWebUIUtils.EventBus;
  37. PDFJS.DownloadManager = pdfjsWebDownloadManager.DownloadManager;
  38. PDFJS.ProgressBar = pdfjsWebUIUtils.ProgressBar;
  39. exports.PDFJS = PDFJS;