aboutsummaryrefslogtreecommitdiff
path: root/pointless/pdfjs
diff options
context:
space:
mode:
authorpacien2018-07-18 21:57:03 +0200
committerpacien2018-07-18 21:57:03 +0200
commit73a1f30e12ba05c547b76e2d0c5b7b3ddbf0a2d3 (patch)
tree2000e4ac7356aff9c468c8d7bf309495e0bab103 /pointless/pdfjs
parent5455052bf756f64440b57b305ce9a17f3050ed3d (diff)
downloadbeamer-viewer-73a1f30e12ba05c547b76e2d0c5b7b3ddbf0a2d3.tar.gz
Import third party lib
Diffstat (limited to 'pointless/pdfjs')
-rw-r--r--pointless/pdfjs/pdf.js17511
-rw-r--r--pointless/pdfjs/pdf.worker.js45070
2 files changed, 62581 insertions, 0 deletions
diff --git a/pointless/pdfjs/pdf.js b/pointless/pdfjs/pdf.js
new file mode 100644
index 0000000..3d384bc
--- /dev/null
+++ b/pointless/pdfjs/pdf.js
@@ -0,0 +1,17511 @@
1/**
2 * @licstart The following is the entire license notice for the
3 * Javascript code in this page
4 *
5 * Copyright 2017 Mozilla Foundation
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * @licend The above is the entire license notice for the
20 * Javascript code in this page
21 */
22
23(function webpackUniversalModuleDefinition(root, factory) {
24 if(typeof exports === 'object' && typeof module === 'object')
25 module.exports = factory();
26 else if(typeof define === 'function' && define.amd)
27 define("pdfjs-dist/build/pdf", [], factory);
28 else if(typeof exports === 'object')
29 exports["pdfjs-dist/build/pdf"] = factory();
30 else
31 root["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory();
32})(typeof self !== 'undefined' ? self : this, function() {
33return /******/ (function(modules) { // webpackBootstrap
34/******/ // The module cache
35/******/ var installedModules = {};
36/******/
37/******/ // The require function
38/******/ function __w_pdfjs_require__(moduleId) {
39/******/
40/******/ // Check if module is in cache
41/******/ if(installedModules[moduleId]) {
42/******/ return installedModules[moduleId].exports;
43/******/ }
44/******/ // Create a new module (and put it into the cache)
45/******/ var module = installedModules[moduleId] = {
46/******/ i: moduleId,
47/******/ l: false,
48/******/ exports: {}
49/******/ };
50/******/
51/******/ // Execute the module function
52/******/ modules[moduleId].call(module.exports, module, module.exports, __w_pdfjs_require__);
53/******/
54/******/ // Flag the module as loaded
55/******/ module.l = true;
56/******/
57/******/ // Return the exports of the module
58/******/ return module.exports;
59/******/ }
60/******/
61/******/
62/******/ // expose the modules object (__webpack_modules__)
63/******/ __w_pdfjs_require__.m = modules;
64/******/
65/******/ // expose the module cache
66/******/ __w_pdfjs_require__.c = installedModules;
67/******/
68/******/ // define getter function for harmony exports
69/******/ __w_pdfjs_require__.d = function(exports, name, getter) {
70/******/ if(!__w_pdfjs_require__.o(exports, name)) {
71/******/ Object.defineProperty(exports, name, {
72/******/ configurable: false,
73/******/ enumerable: true,
74/******/ get: getter
75/******/ });
76/******/ }
77/******/ };
78/******/
79/******/ // getDefaultExport function for compatibility with non-harmony modules
80/******/ __w_pdfjs_require__.n = function(module) {
81/******/ var getter = module && module.__esModule ?
82/******/ function getDefault() { return module['default']; } :
83/******/ function getModuleExports() { return module; };
84/******/ __w_pdfjs_require__.d(getter, 'a', getter);
85/******/ return getter;
86/******/ };
87/******/
88/******/ // Object.prototype.hasOwnProperty.call
89/******/ __w_pdfjs_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
90/******/
91/******/ // __webpack_public_path__
92/******/ __w_pdfjs_require__.p = "";
93/******/
94/******/ // Load entry module and return exports
95/******/ return __w_pdfjs_require__(__w_pdfjs_require__.s = 60);
96/******/ })
97/************************************************************************/
98/******/ ([
99/* 0 */
100/***/ (function(module, exports, __w_pdfjs_require__) {
101
102"use strict";
103
104
105Object.defineProperty(exports, "__esModule", {
106 value: true
107});
108exports.unreachable = exports.warn = exports.utf8StringToString = exports.stringToUTF8String = exports.stringToPDFString = exports.stringToBytes = exports.string32 = exports.shadow = exports.setVerbosityLevel = exports.ReadableStream = exports.removeNullCharacters = exports.readUint32 = exports.readUint16 = exports.readInt8 = exports.log2 = exports.isEvalSupported = exports.isLittleEndian = exports.createValidAbsoluteUrl = exports.isSameOrigin = exports.isSpace = exports.isString = exports.isNum = exports.isEmptyObj = exports.isBool = exports.isArrayBuffer = exports.info = exports.getVerbosityLevel = exports.getLookupTableFactory = exports.getInheritableProperty = exports.deprecated = exports.createObjectURL = exports.createPromiseCapability = exports.createBlob = exports.bytesToString = exports.assert = exports.arraysToBytes = exports.arrayByteLength = exports.FormatError = exports.XRefParseException = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.PasswordResponses = exports.PasswordException = exports.PageViewport = exports.NotImplementedException = exports.NativeImageDecoding = exports.MissingPDFException = exports.MissingDataException = exports.MessageHandler = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VerbosityLevel = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = undefined;
109
110var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
111
112__w_pdfjs_require__(61);
113
114var _streams_polyfill = __w_pdfjs_require__(115);
115
116var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
117var NativeImageDecoding = {
118 NONE: 'none',
119 DECODE: 'decode',
120 DISPLAY: 'display'
121};
122var TextRenderingMode = {
123 FILL: 0,
124 STROKE: 1,
125 FILL_STROKE: 2,
126 INVISIBLE: 3,
127 FILL_ADD_TO_PATH: 4,
128 STROKE_ADD_TO_PATH: 5,
129 FILL_STROKE_ADD_TO_PATH: 6,
130 ADD_TO_PATH: 7,
131 FILL_STROKE_MASK: 3,
132 ADD_TO_PATH_FLAG: 4
133};
134var ImageKind = {
135 GRAYSCALE_1BPP: 1,
136 RGB_24BPP: 2,
137 RGBA_32BPP: 3
138};
139var AnnotationType = {
140 TEXT: 1,
141 LINK: 2,
142 FREETEXT: 3,
143 LINE: 4,
144 SQUARE: 5,
145 CIRCLE: 6,
146 POLYGON: 7,
147 POLYLINE: 8,
148 HIGHLIGHT: 9,
149 UNDERLINE: 10,
150 SQUIGGLY: 11,
151 STRIKEOUT: 12,
152 STAMP: 13,
153 CARET: 14,
154 INK: 15,
155 POPUP: 16,
156 FILEATTACHMENT: 17,
157 SOUND: 18,
158 MOVIE: 19,
159 WIDGET: 20,
160 SCREEN: 21,
161 PRINTERMARK: 22,
162 TRAPNET: 23,
163 WATERMARK: 24,
164 THREED: 25,
165 REDACT: 26
166};
167var AnnotationFlag = {
168 INVISIBLE: 0x01,
169 HIDDEN: 0x02,
170 PRINT: 0x04,
171 NOZOOM: 0x08,
172 NOROTATE: 0x10,
173 NOVIEW: 0x20,
174 READONLY: 0x40,
175 LOCKED: 0x80,
176 TOGGLENOVIEW: 0x100,
177 LOCKEDCONTENTS: 0x200
178};
179var AnnotationFieldFlag = {
180 READONLY: 0x0000001,
181 REQUIRED: 0x0000002,
182 NOEXPORT: 0x0000004,
183 MULTILINE: 0x0001000,
184 PASSWORD: 0x0002000,
185 NOTOGGLETOOFF: 0x0004000,
186 RADIO: 0x0008000,
187 PUSHBUTTON: 0x0010000,
188 COMBO: 0x0020000,
189 EDIT: 0x0040000,
190 SORT: 0x0080000,
191 FILESELECT: 0x0100000,
192 MULTISELECT: 0x0200000,
193 DONOTSPELLCHECK: 0x0400000,
194 DONOTSCROLL: 0x0800000,
195 COMB: 0x1000000,
196 RICHTEXT: 0x2000000,
197 RADIOSINUNISON: 0x2000000,
198 COMMITONSELCHANGE: 0x4000000
199};
200var AnnotationBorderStyleType = {
201 SOLID: 1,
202 DASHED: 2,
203 BEVELED: 3,
204 INSET: 4,
205 UNDERLINE: 5
206};
207var StreamType = {
208 UNKNOWN: 0,
209 FLATE: 1,
210 LZW: 2,
211 DCT: 3,
212 JPX: 4,
213 JBIG: 5,
214 A85: 6,
215 AHX: 7,
216 CCF: 8,
217 RL: 9
218};
219var FontType = {
220 UNKNOWN: 0,
221 TYPE1: 1,
222 TYPE1C: 2,
223 CIDFONTTYPE0: 3,
224 CIDFONTTYPE0C: 4,
225 TRUETYPE: 5,
226 CIDFONTTYPE2: 6,
227 TYPE3: 7,
228 OPENTYPE: 8,
229 TYPE0: 9,
230 MMTYPE1: 10
231};
232var VerbosityLevel = {
233 ERRORS: 0,