pdf.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 pdfjsVersion = '1.9.462';
  17. var pdfjsBuild = 'e9ba5494';
  18. var pdfjsSharedUtil = require('./shared/util.js');
  19. var pdfjsDisplayGlobal = require('./display/global.js');
  20. var pdfjsDisplayAPI = require('./display/api.js');
  21. var pdfjsDisplayTextLayer = require('./display/text_layer.js');
  22. var pdfjsDisplayAnnotationLayer = require('./display/annotation_layer.js');
  23. var pdfjsDisplayDOMUtils = require('./display/dom_utils.js');
  24. var pdfjsDisplaySVG = require('./display/svg.js');
  25. {
  26. require('./display/network.js');
  27. }
  28. exports.PDFJS = pdfjsDisplayGlobal.PDFJS;
  29. exports.build = pdfjsDisplayAPI.build;
  30. exports.version = pdfjsDisplayAPI.version;
  31. exports.getDocument = pdfjsDisplayAPI.getDocument;
  32. exports.LoopbackPort = pdfjsDisplayAPI.LoopbackPort;
  33. exports.PDFDataRangeTransport = pdfjsDisplayAPI.PDFDataRangeTransport;
  34. exports.PDFWorker = pdfjsDisplayAPI.PDFWorker;
  35. exports.renderTextLayer = pdfjsDisplayTextLayer.renderTextLayer;
  36. exports.AnnotationLayer = pdfjsDisplayAnnotationLayer.AnnotationLayer;
  37. exports.CustomStyle = pdfjsDisplayDOMUtils.CustomStyle;
  38. exports.createPromiseCapability = pdfjsSharedUtil.createPromiseCapability;
  39. exports.PasswordResponses = pdfjsSharedUtil.PasswordResponses;
  40. exports.InvalidPDFException = pdfjsSharedUtil.InvalidPDFException;
  41. exports.MissingPDFException = pdfjsSharedUtil.MissingPDFException;
  42. exports.SVGGraphics = pdfjsDisplaySVG.SVGGraphics;
  43. exports.NativeImageDecoding = pdfjsSharedUtil.NativeImageDecoding;
  44. exports.UnexpectedResponseException = pdfjsSharedUtil.UnexpectedResponseException;
  45. exports.OPS = pdfjsSharedUtil.OPS;
  46. exports.UNSUPPORTED_FEATURES = pdfjsSharedUtil.UNSUPPORTED_FEATURES;
  47. exports.isValidUrl = pdfjsDisplayDOMUtils.isValidUrl;
  48. exports.createValidAbsoluteUrl = pdfjsSharedUtil.createValidAbsoluteUrl;
  49. exports.createObjectURL = pdfjsSharedUtil.createObjectURL;
  50. exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters;
  51. exports.shadow = pdfjsSharedUtil.shadow;
  52. exports.createBlob = pdfjsSharedUtil.createBlob;
  53. exports.RenderingCancelledException = pdfjsDisplayDOMUtils.RenderingCancelledException;
  54. exports.getFilenameFromUrl = pdfjsDisplayDOMUtils.getFilenameFromUrl;
  55. exports.addLinkAttributes = pdfjsDisplayDOMUtils.addLinkAttributes;
  56. exports.StatTimer = pdfjsSharedUtil.StatTimer;