Browse Source

PDF.js version 2.0.451 - See mozilla/pdf.js@24f766b14d84b6776c1b3b6952b097bd8f865a5d

master v2.0.451
pdfjsbot 7 years ago
parent
commit
80804fdb9e
  1. 2
      bower.json
  2. 862
      build/pdf.js
  3. 2
      build/pdf.js.map
  4. 2
      build/pdf.min.js
  5. 6
      build/pdf.worker.js
  6. 2
      build/pdf.worker.js.map
  7. 2
      build/pdf.worker.min.js
  8. 2
      lib/core/worker.js
  9. 6
      lib/display/api.js
  10. 133
      lib/display/dom_utils.js
  11. 14
      lib/display/metadata.js
  12. 434
      lib/display/xml_parser.js
  13. 4
      lib/pdf.js
  14. 4
      lib/pdf.worker.js
  15. 4
      lib/web/pdf_viewer.component.js
  16. 2
      package.json
  17. 4
      web/pdf_viewer.js
  18. 2
      web/pdf_viewer.js.map

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "2.0.449",
"version": "2.0.451",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

862
build/pdf.js

File diff suppressed because it is too large Load Diff

2
build/pdf.js.map

File diff suppressed because one or more lines are too long

2
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

6
build/pdf.worker.js vendored

@ -22350,8 +22350,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -22350,8 +22350,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.449';
var pdfjsBuild = 'b67f117b';
var pdfjsVersion = '2.0.451';
var pdfjsBuild = '24f766b1';
var pdfjsCoreWorker = __w_pdfjs_require__(74);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22564,7 +22564,7 @@ var WorkerMessageHandler = { @@ -22564,7 +22564,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.449';
var workerVersion = '2.0.451';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

2
build/pdf.worker.js.map vendored

File diff suppressed because one or more lines are too long

2
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
lib/core/worker.js

@ -223,7 +223,7 @@ var WorkerMessageHandler = { @@ -223,7 +223,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.449';
var workerVersion = '2.0.451';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

6
lib/display/api.js

@ -234,7 +234,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -234,7 +234,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
}
return worker.messageHandler.sendWithPromise('GetDocRequest', {
docId: docId,
apiVersion: '2.0.449',
apiVersion: '2.0.451',
source: {
data: source.data,
url: source.url,
@ -1665,8 +1665,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1665,8 +1665,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.449';
exports.build = build = 'b67f117b';
exports.version = version = '2.0.451';
exports.build = build = '24f766b1';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

133
lib/display/dom_utils.js

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DummyStatTimer = exports.StatTimer = exports.SimpleXMLParser = exports.DOMSVGFactory = exports.DOMCMapReaderFactory = exports.DOMCanvasFactory = exports.DEFAULT_LINK_REL = exports.LinkTarget = exports.getFilenameFromUrl = exports.addLinkAttributes = exports.RenderingCancelledException = undefined;
exports.DummyStatTimer = exports.StatTimer = exports.DOMSVGFactory = exports.DOMCMapReaderFactory = exports.DOMCanvasFactory = exports.DEFAULT_LINK_REL = exports.LinkTarget = exports.getFilenameFromUrl = exports.addLinkAttributes = exports.RenderingCancelledException = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@ -173,136 +173,6 @@ var DOMSVGFactory = function () { @@ -173,136 +173,6 @@ var DOMSVGFactory = function () {
return DOMSVGFactory;
}();
var SimpleDOMNode = function () {
function SimpleDOMNode(nodeName, nodeValue) {
_classCallCheck(this, SimpleDOMNode);
this.nodeName = nodeName;
this.nodeValue = nodeValue;
Object.defineProperty(this, 'parentNode', {
value: null,
writable: true
});
}
_createClass(SimpleDOMNode, [{
key: 'hasChildNodes',
value: function hasChildNodes() {
return this.childNodes && this.childNodes.length > 0;
}
}, {
key: 'firstChild',
get: function get() {
return this.childNodes[0];
}
}, {
key: 'nextSibling',
get: function get() {
var index = this.parentNode.childNodes.indexOf(this);
return this.parentNode.childNodes[index + 1];
}
}, {
key: 'textContent',
get: function get() {
if (!this.childNodes) {
return this.nodeValue || '';
}
return this.childNodes.map(function (child) {
return child.textContent;
}).join('');
}
}]);
return SimpleDOMNode;
}();
var SimpleXMLParser = function () {
function SimpleXMLParser() {
_classCallCheck(this, SimpleXMLParser);
}
_createClass(SimpleXMLParser, [{
key: 'parseFromString',
value: function parseFromString(data) {
var _this2 = this;
var nodes = [];
data = data.replace(/<\?[\s\S]*?\?>|<!--[\s\S]*?-->/g, '').trim();
data = data.replace(/<!DOCTYPE[^>\[]+(\[[^\]]+)?[^>]+>/g, '').trim();
data = data.replace(/>([^<][\s\S]*?)</g, function (all, text) {
var length = nodes.length;
var node = new SimpleDOMNode('#text', _this2._decodeXML(text));
nodes.push(node);
if (node.textContent.trim().length === 0) {
return '><';
}
return '>' + length + ',<';
});
data = data.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g, function (all, text) {
var length = nodes.length;
var node = new SimpleDOMNode('#text', text);
nodes.push(node);
return length + ',';
});
var regex = /<([\w\:]+)((?:[\s\w:=]|'[^']*'|"[^"]*")*)(?:\/>|>([\d,]*)<\/[^>]+>)/g;
var lastLength = void 0;
do {
lastLength = nodes.length;
data = data.replace(regex, function (all, name, attrs, data) {
var length = nodes.length;
var node = new SimpleDOMNode(name);
var children = [];
if (data) {
data = data.split(',');
data.pop();
data.forEach(function (child) {
var childNode = nodes[+child];
childNode.parentNode = node;
children.push(childNode);
});
}
node.childNodes = children;
nodes.push(node);
return length + ',';
});
} while (lastLength < nodes.length);
return { documentElement: nodes.pop() };
}
}, {
key: '_decodeXML',
value: function _decodeXML(text) {
if (!text.includes('&')) {
return text;
}
return text.replace(/&(#(x[0-9a-f]+|\d+)|\w+);/gi, function (all, entityName, number) {
if (number) {
if (number[0] === 'x') {
number = parseInt(number.substring(1), 16);
} else {
number = +number;
}
return String.fromCharCode(number);
}
switch (entityName) {
case 'amp':
return '&';
case 'lt':
return '<';
case 'gt':
return '>';
case 'quot':
return '\"';
case 'apos':
return '\'';
}
return '&' + entityName + ';';
});
}
}]);
return SimpleXMLParser;
}();
var RenderingCancelledException = function RenderingCancelledException() {
function RenderingCancelledException(msg, type) {
this.message = msg;
@ -435,6 +305,5 @@ exports.DEFAULT_LINK_REL = DEFAULT_LINK_REL; @@ -435,6 +305,5 @@ exports.DEFAULT_LINK_REL = DEFAULT_LINK_REL;
exports.DOMCanvasFactory = DOMCanvasFactory;
exports.DOMCMapReaderFactory = DOMCMapReaderFactory;
exports.DOMSVGFactory = DOMSVGFactory;
exports.SimpleXMLParser = SimpleXMLParser;
exports.StatTimer = StatTimer;
exports.DummyStatTimer = DummyStatTimer;

14
lib/display/metadata.js

@ -30,7 +30,7 @@ var _createClass = function () { function defineProperties(target, props) { for @@ -30,7 +30,7 @@ var _createClass = function () { function defineProperties(target, props) { for
var _util = require('../shared/util');
var _dom_utils = require('./dom_utils');
var _xml_parser = require('./xml_parser');
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@ -40,10 +40,12 @@ var Metadata = function () { @@ -40,10 +40,12 @@ var Metadata = function () {
(0, _util.assert)(typeof data === 'string', 'Metadata: input is not a string');
data = this._repair(data);
var parser = new _dom_utils.SimpleXMLParser();
data = parser.parseFromString(data);
var parser = new _xml_parser.SimpleXMLParser();
var xmlDocument = parser.parseFromString(data);
this._metadata = Object.create(null);
this._parse(data);
if (xmlDocument) {
this._parse(xmlDocument);
}
}
_createClass(Metadata, [{
@ -81,8 +83,8 @@ var Metadata = function () { @@ -81,8 +83,8 @@ var Metadata = function () {
}
}, {
key: '_parse',
value: function _parse(domDocument) {
var rdf = domDocument.documentElement;
value: function _parse(xmlDocument) {
var rdf = xmlDocument.documentElement;
if (rdf.nodeName.toLowerCase() !== 'rdf:rdf') {
rdf = rdf.firstChild;
while (rdf && rdf.nodeName.toLowerCase() !== 'rdf:rdf') {

434
lib/display/xml_parser.js

@ -0,0 +1,434 @@ @@ -0,0 +1,434 @@
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2017 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.
*
* @licend The above is the entire license notice for the
* Javascript code in this page
*/
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var XMLParserErrorCode = {
NoError: 0,
EndOfDocument: -1,
UnterminatedCdat: -2,
UnterminatedXmlDeclaration: -3,
UnterminatedDoctypeDeclaration: -4,
UnterminatedComment: -5,
MalformedElement: -6,
OutOfMemory: -7,
UnterminatedAttributeValue: -8,
UnterminatedElement: -9,
ElementNeverBegun: -10
};
function isWhitespace(s, index) {
var ch = s[index];
return ch === ' ' || ch === '\n' || ch === '\r' || ch === '\t';
}
function isWhitespaceString(s) {
for (var i = 0, ii = s.length; i < ii; i++) {
if (!isWhitespace(s, i)) {
return false;
}
}
return true;
}
var XMLParserBase = function () {
function XMLParserBase() {
_classCallCheck(this, XMLParserBase);
}
_createClass(XMLParserBase, [{
key: '_resolveEntities',
value: function _resolveEntities(s) {
return s.replace(/&([^;]+);/g, function (all, entity) {
if (entity.substring(0, 2) === '#x') {
return String.fromCharCode(parseInt(entity.substring(2), 16));
} else if (entity.substring(0, 1) === '#') {
return String.fromCharCode(parseInt(entity.substring(1), 10));
}
switch (entity) {
case 'lt':
return '<';
case 'gt':
return '>';
case 'amp':
return '&';
case 'quot':
return '\"';
}
return this.onResolveEntity(entity);
});
}
}, {
key: '_parseContent',
value: function _parseContent(s, start) {
var pos = start,
name = void 0,
attributes = [];
function skipWs() {
while (pos < s.length && isWhitespace(s, pos)) {
++pos;
}
}
while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '>' && s[pos] !== '/') {
++pos;
}
name = s.substring(start, pos);
skipWs();
while (pos < s.length && s[pos] !== '>' && s[pos] !== '/' && s[pos] !== '?') {
skipWs();
var attrName = '',
attrValue = '';
while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '=') {
attrName += s[pos];
++pos;
}
skipWs();
if (s[pos] !== '=') {
return null;
}
++pos;
skipWs();
var attrEndChar = s[pos];
if (attrEndChar !== '\"' && attrEndChar !== '\'') {
return null;
}
var attrEndIndex = s.indexOf(attrEndChar, ++pos);
if (attrEndIndex < 0) {
return null;
}
attrValue = s.substring(pos, attrEndIndex);
attributes.push({
name: attrName,
value: this._resolveEntities(attrValue)
});
pos = attrEndIndex + 1;
skipWs();
}
return {
name: name,
attributes: attributes,
parsed: pos - start
};
}
}, {
key: '_parseProcessingInstruction',
value: function _parseProcessingInstruction(s, start) {
var pos = start,
name = void 0,
value = void 0;
function skipWs() {
while (pos < s.length && isWhitespace(s, pos)) {
++pos;
}
}
while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '>' && s[pos] !== '/') {
++pos;
}
name = s.substring(start, pos);
skipWs();
var attrStart = pos;
while (pos < s.length && (s[pos] !== '?' || s[pos + 1] !== '>')) {
++pos;
}
value = s.substring(attrStart, pos);
return {
name: name,
value: value,
parsed: pos - start
};
}
}, {
key: 'parseXml',
value: function parseXml(s) {
var i = 0;
while (i < s.length) {
var ch = s[i];
var j = i;
if (ch === '<') {
++j;
var ch2 = s[j];
var q = void 0;
switch (ch2) {
case '/':
++j;
q = s.indexOf('>', j);
if (q < 0) {
this.onError(XMLParserErrorCode.UnterminatedElement);
return;
}
this.onEndElement(s.substring(j, q));
j = q + 1;
break;
case '?':
++j;
var pi = this._parseProcessingInstruction(s, j);
if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== '?>') {
this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration);
return;
}
this.onPi(pi.name, pi.value);
j += pi.parsed + 2;
break;
case '!':
if (s.substring(j + 1, j + 3) === '--') {
q = s.indexOf('-->', j + 3);
if (q < 0) {
this.onError(XMLParserErrorCode.UnterminatedComment);
return;
}
this.onComment(s.substring(j + 3, q));
j = q + 3;
} else if (s.substring(j + 1, j + 8) === '[CDATA[') {
q = s.indexOf(']]>', j + 8);
if (q < 0) {
this.onError(XMLParserErrorCode.UnterminatedCdat);
return;
}
this.onCdata(s.substring(j + 8, q));
j = q + 3;
} else if (s.substring(j + 1, j + 8) === 'DOCTYPE') {
var q2 = s.indexOf('[', j + 8);
var complexDoctype = false;
q = s.indexOf('>', j + 8);
if (q < 0) {
this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
return;
}
if (q2 > 0 && q > q2) {
q = s.indexOf(']>', j + 8);
if (q < 0) {
this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration);
return;
}
complexDoctype = true;
}
var doctypeContent = s.substring(j + 8, q + (complexDoctype ? 1 : 0));
this.onDoctype(doctypeContent);
j = q + (complexDoctype ? 2 : 1);
} else {
this.onError(XMLParserErrorCode.MalformedElement);
return;
}
break;
default:
var content = this._parseContent(s, j);
if (content === null) {
this.onError(XMLParserErrorCode.MalformedElement);
return;
}
var isClosed = false;
if (s.substring(j + content.parsed, j + content.parsed + 2) === '/>') {
isClosed = true;
} else if (s.substring(j + content.parsed, j + content.parsed + 1) !== '>') {
this.onError(XMLParserErrorCode.UnterminatedElement);
return;
}
this.onBeginElement(content.name, content.attributes, isClosed);
j += content.parsed + (isClosed ? 2 : 1);
break;
}
} else {
while (j < s.length && s[j] !== '<') {
j++;
}
var text = s.substring(i, j);
this.onText(this._resolveEntities(text));
}
i = j;
}
}
}, {
key: 'onResolveEntity',
value: function onResolveEntity(name) {
return '&' + name + ';';
}
}, {
key: 'onPi',
value: function onPi(name, value) {}
}, {
key: 'onComment',
value: function onComment(text) {}
}, {
key: 'onCdata',
value: function onCdata(text) {}
}, {
key: 'onDoctype',
value: function onDoctype(doctypeContent) {}
}, {
key: 'onText',
value: function onText(text) {}
}, {
key: 'onBeginElement',
value: function onBeginElement(name, attributes, isEmpty) {}
}, {
key: 'onEndElement',
value: function onEndElement(name) {}
}, {
key: 'onError',
value: function onError(code) {}
}]);
return XMLParserBase;
}();
var SimpleDOMNode = function () {
function SimpleDOMNode(nodeName, nodeValue) {
_classCallCheck(this, SimpleDOMNode);
this.nodeName = nodeName;
this.nodeValue = nodeValue;
Object.defineProperty(this, 'parentNode', {
value: null,
writable: true
});
}
_createClass(SimpleDOMNode, [{
key: 'hasChildNodes',
value: function hasChildNodes() {
return this.childNodes && this.childNodes.length > 0;
}
}, {
key: 'firstChild',
get: function get() {
return this.childNodes[0];
}
}, {
key: 'nextSibling',
get: function get() {
var index = this.parentNode.childNodes.indexOf(this);
return this.parentNode.childNodes[index + 1];
}
}, {
key: 'textContent',
get: function get() {
if (!this.childNodes) {
return this.nodeValue || '';
}
return this.childNodes.map(function (child) {
return child.textContent;
}).join('');
}
}]);
return SimpleDOMNode;
}();
var SimpleXMLParser = function (_XMLParserBase) {
_inherits(SimpleXMLParser, _XMLParserBase);
function SimpleXMLParser() {
_classCallCheck(this, SimpleXMLParser);
var _this = _possibleConstructorReturn(this, (SimpleXMLParser.__proto__ || Object.getPrototypeOf(SimpleXMLParser)).call(this));
_this._currentFragment = null;
_this._stack = null;
_this._errorCode = XMLParserErrorCode.NoError;
return _this;
}
_createClass(SimpleXMLParser, [{
key: 'parseFromString',
value: function parseFromString(data) {
this._currentFragment = [];
this._stack = [];
this._errorCode = XMLParserErrorCode.NoError;
this.parseXml(data);
if (this._errorCode !== XMLParserErrorCode.NoError) {
return undefined;
}
var _currentFragment = _slicedToArray(this._currentFragment, 1),
documentElement = _currentFragment[0];
return { documentElement: documentElement };
}
}, {
key: 'onResolveEntity',
value: function onResolveEntity(name) {
switch (name) {
case 'apos':
return '\'';
}
return _get(SimpleXMLParser.prototype.__proto__ || Object.getPrototypeOf(SimpleXMLParser.prototype), 'onResolveEntity', this).call(this, name);
}
}, {
key: 'onText',
value: function onText(text) {
if (isWhitespaceString(text)) {
return;
}
var node = new SimpleDOMNode('#text', text);
this._currentFragment.push(node);
}
}, {
key: 'onCdata',
value: function onCdata(text) {
var node = new SimpleDOMNode('#text', text);
this._currentFragment.push(node);
}
}, {
key: 'onBeginElement',
value: function onBeginElement(name, attributes, isEmpty) {
var node = new SimpleDOMNode(name);
node.childNodes = [];
this._currentFragment.push(node);
if (isEmpty) {
return;
}
this._stack.push(this._currentFragment);
this._currentFragment = node.childNodes;
}
}, {
key: 'onEndElement',
value: function onEndElement(name) {
this._currentFragment = this._stack.pop();
var lastElement = this._currentFragment[this._currentFragment.length - 1];
for (var i = 0, ii = lastElement.childNodes.length; i < ii; i++) {
lastElement.childNodes[i].parentNode = lastElement;
}
}
}, {
key: 'onError',
value: function onError(code) {
this._errorCode = code;
}
}]);
return SimpleXMLParser;
}(XMLParserBase);
exports.SimpleXMLParser = SimpleXMLParser;

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.449';
var pdfjsBuild = 'b67f117b';
var pdfjsVersion = '2.0.451';
var pdfjsBuild = '24f766b1';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayAPI = require('./display/api.js');
var pdfjsDisplayTextLayer = require('./display/text_layer.js');

4
lib/pdf.worker.js vendored

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.449';
var pdfjsBuild = 'b67f117b';
var pdfjsVersion = '2.0.451';
var pdfjsBuild = '24f766b1';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

4
lib/web/pdf_viewer.component.js

@ -48,8 +48,8 @@ var _pdf_single_page_viewer = require('./pdf_single_page_viewer'); @@ -48,8 +48,8 @@ var _pdf_single_page_viewer = require('./pdf_single_page_viewer');
var _pdf_viewer = require('./pdf_viewer.js');
var pdfjsVersion = '2.0.449';
var pdfjsBuild = 'b67f117b';
var pdfjsVersion = '2.0.451';
var pdfjsBuild = '24f766b1';
exports.PDFViewer = _pdf_viewer.PDFViewer;
exports.PDFSinglePageViewer = _pdf_single_page_viewer.PDFSinglePageViewer;
exports.PDFPageView = _pdf_page_view.PDFPageView;

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "2.0.449",
"version": "2.0.451",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

4
web/pdf_viewer.js

@ -3179,8 +3179,8 @@ var _pdf_single_page_viewer = __w_pdfjs_require__(16); @@ -3179,8 +3179,8 @@ var _pdf_single_page_viewer = __w_pdfjs_require__(16);
var _pdf_viewer = __w_pdfjs_require__(17);
var pdfjsVersion = '2.0.449';
var pdfjsBuild = 'b67f117b';
var pdfjsVersion = '2.0.451';
var pdfjsBuild = '24f766b1';
exports.PDFViewer = _pdf_viewer.PDFViewer;
exports.PDFSinglePageViewer = _pdf_single_page_viewer.PDFSinglePageViewer;
exports.PDFPageView = _pdf_page_view.PDFPageView;

2
web/pdf_viewer.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save