Browse Source

PDF.js version 2.0.285 - See mozilla/pdf.js@974664651188def21c3a9aae9b01798ba00e51f8

master v2.0.285
pdfjsbot 7 years ago
parent
commit
115a48b37b
  1. 2
      bower.json
  2. 32
      build/pdf.combined.js
  3. 2
      build/pdf.combined.js.map
  4. 14
      build/pdf.js
  5. 2
      build/pdf.js.map
  6. 2
      build/pdf.min.js
  7. 22
      build/pdf.worker.js
  8. 2
      build/pdf.worker.js.map
  9. 2
      build/pdf.worker.min.js
  10. 16
      lib/core/jbig2.js
  11. 2
      lib/core/worker.js
  12. 6
      lib/display/api.js
  13. 4
      lib/display/global.js
  14. 4
      lib/pdf.js
  15. 4
      lib/pdf.worker.js
  16. 2
      package.json

2
bower.json

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

32
build/pdf.combined.js

@ -11641,7 +11641,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -11641,7 +11641,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.283';
var apiVersion = '2.0.285';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -12936,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -12936,8 +12936,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.283';
exports.build = build = 'fe5102a2';
exports.version = version = '2.0.285';
exports.build = build = '97466465';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -26734,8 +26734,8 @@ exports.SVGGraphics = SVGGraphics; @@ -26734,8 +26734,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.283';
var pdfjsBuild = 'fe5102a2';
var pdfjsVersion = '2.0.285';
var pdfjsBuild = '97466465';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(132);
var pdfjsDisplayAPI = __w_pdfjs_require__(66);
@ -31938,8 +31938,8 @@ if (!_global_scope2.default.PDFJS) { @@ -31938,8 +31938,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.283';
PDFJS.build = 'fe5102a2';
PDFJS.version = '2.0.285';
PDFJS.build = '97466465';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
@ -35310,7 +35310,7 @@ var WorkerMessageHandler = { @@ -35310,7 +35310,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.283';
var workerVersion = '2.0.285';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -38212,22 +38212,6 @@ var Jbig2Image = function Jbig2ImageClosure() { @@ -38212,22 +38212,6 @@ var Jbig2Image = function Jbig2ImageClosure() {
processSegment(segments[i], visitor);
}
}
function parseJbig2(data, start, end) {
var position = start;
if (data[position] !== 0x97 || data[position + 1] !== 0x4A || data[position + 2] !== 0x42 || data[position + 3] !== 0x32 || data[position + 4] !== 0x0D || data[position + 5] !== 0x0A || data[position + 6] !== 0x1A || data[position + 7] !== 0x0A) {
throw new Jbig2Error('invalid header');
}
var header = {};
position += 8;
var flags = data[position++];
header.randomAccess = !(flags & 1);
if (!(flags & 2)) {
header.numberOfPages = (0, _util.readUint32)(data, position);
position += 4;
}
readSegments(header, data, position, end);
throw new Error('Not implemented');
}
function parseJbig2Chunks(chunks) {
var visitor = new SimpleSegmentVisitor();
for (var i = 0, ii = chunks.length; i < ii; i++) {

2
build/pdf.combined.js.map

File diff suppressed because one or more lines are too long

14
build/pdf.js

@ -3321,7 +3321,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -3321,7 +3321,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.283';
var apiVersion = '2.0.285';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -4697,8 +4697,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -4697,8 +4697,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.283';
exports.build = build = 'fe5102a2';
exports.version = version = '2.0.285';
exports.build = build = '97466465';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;
@ -7456,8 +7456,8 @@ exports.SVGGraphics = SVGGraphics; @@ -7456,8 +7456,8 @@ exports.SVGGraphics = SVGGraphics;
"use strict";
var pdfjsVersion = '2.0.283';
var pdfjsBuild = 'fe5102a2';
var pdfjsVersion = '2.0.285';
var pdfjsBuild = '97466465';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(115);
var pdfjsDisplayAPI = __w_pdfjs_require__(58);
@ -12660,8 +12660,8 @@ if (!_global_scope2.default.PDFJS) { @@ -12660,8 +12660,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.283';
PDFJS.build = 'fe5102a2';
PDFJS.version = '2.0.285';
PDFJS.build = '97466465';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

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

22
build/pdf.worker.js vendored

@ -21955,8 +21955,8 @@ exports.PostScriptCompiler = PostScriptCompiler; @@ -21955,8 +21955,8 @@ exports.PostScriptCompiler = PostScriptCompiler;
"use strict";
var pdfjsVersion = '2.0.283';
var pdfjsBuild = 'fe5102a2';
var pdfjsVersion = '2.0.285';
var pdfjsBuild = '97466465';
var pdfjsCoreWorker = __w_pdfjs_require__(73);
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;
@ -22169,7 +22169,7 @@ var WorkerMessageHandler = { @@ -22169,7 +22169,7 @@ var WorkerMessageHandler = {
var cancelXHRs = null;
var WorkerTasks = [];
var apiVersion = docParams.apiVersion;
var workerVersion = '2.0.283';
var workerVersion = '2.0.285';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}
@ -30192,22 +30192,6 @@ var Jbig2Image = function Jbig2ImageClosure() { @@ -30192,22 +30192,6 @@ var Jbig2Image = function Jbig2ImageClosure() {
processSegment(segments[i], visitor);
}
}
function parseJbig2(data, start, end) {
var position = start;
if (data[position] !== 0x97 || data[position + 1] !== 0x4A || data[position + 2] !== 0x42 || data[position + 3] !== 0x32 || data[position + 4] !== 0x0D || data[position + 5] !== 0x0A || data[position + 6] !== 0x1A || data[position + 7] !== 0x0A) {
throw new Jbig2Error('invalid header');
}
var header = {};
position += 8;
var flags = data[position++];
header.randomAccess = !(flags & 1);
if (!(flags & 2)) {
header.numberOfPages = (0, _util.readUint32)(data, position);
position += 4;
}
readSegments(header, data, position, end);
throw new Error('Not implemented');
}
function parseJbig2Chunks(chunks) {
var visitor = new SimpleSegmentVisitor();
for (var i = 0, ii = chunks.length; i < ii; i++) {

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

16
lib/core/jbig2.js

@ -1109,22 +1109,6 @@ var Jbig2Image = function Jbig2ImageClosure() { @@ -1109,22 +1109,6 @@ var Jbig2Image = function Jbig2ImageClosure() {
processSegment(segments[i], visitor);
}
}
function parseJbig2(data, start, end) {
var position = start;
if (data[position] !== 0x97 || data[position + 1] !== 0x4A || data[position + 2] !== 0x42 || data[position + 3] !== 0x32 || data[position + 4] !== 0x0D || data[position + 5] !== 0x0A || data[position + 6] !== 0x1A || data[position + 7] !== 0x0A) {
throw new Jbig2Error('invalid header');
}
var header = {};
position += 8;
var flags = data[position++];
header.randomAccess = !(flags & 1);
if (!(flags & 2)) {
header.numberOfPages = (0, _util.readUint32)(data, position);
position += 4;
}
readSegments(header, data, position, end);
throw new Error('Not implemented');
}
function parseJbig2Chunks(chunks) {
var visitor = new SimpleSegmentVisitor();
for (var i = 0, ii = chunks.length; i < ii; i++) {

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.283';
var workerVersion = '2.0.285';
if (apiVersion !== null && apiVersion !== workerVersion) {
throw new Error('The API version "' + apiVersion + '" does not match ' + ('the Worker version "' + workerVersion + '".'));
}

6
lib/display/api.js

@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { @@ -178,7 +178,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
if (worker.destroyed) {
return Promise.reject(new Error('Worker was destroyed'));
}
var apiVersion = '2.0.283';
var apiVersion = '2.0.285';
source.disableRange = (0, _dom_utils.getDefaultSetting)('disableRange');
source.disableAutoFetch = (0, _dom_utils.getDefaultSetting)('disableAutoFetch');
source.disableStream = (0, _dom_utils.getDefaultSetting)('disableStream');
@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() { @@ -1554,8 +1554,8 @@ var InternalRenderTask = function InternalRenderTaskClosure() {
}();
var version, build;
{
exports.version = version = '2.0.283';
exports.build = build = 'fe5102a2';
exports.version = version = '2.0.285';
exports.build = build = '97466465';
}
exports.getDocument = getDocument;
exports.LoopbackPort = LoopbackPort;

4
lib/display/global.js

@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) { @@ -51,8 +51,8 @@ if (!_global_scope2.default.PDFJS) {
}
var PDFJS = _global_scope2.default.PDFJS;
{
PDFJS.version = '2.0.283';
PDFJS.build = 'fe5102a2';
PDFJS.version = '2.0.285';
PDFJS.build = '97466465';
}
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {

4
lib/pdf.js

@ -21,8 +21,8 @@ @@ -21,8 +21,8 @@
*/
'use strict';
var pdfjsVersion = '2.0.283';
var pdfjsBuild = 'fe5102a2';
var pdfjsVersion = '2.0.285';
var pdfjsBuild = '97466465';
var pdfjsSharedUtil = require('./shared/util.js');
var pdfjsDisplayGlobal = require('./display/global.js');
var pdfjsDisplayAPI = require('./display/api.js');

4
lib/pdf.worker.js vendored

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
*/
'use strict';
var pdfjsVersion = '2.0.283';
var pdfjsBuild = 'fe5102a2';
var pdfjsVersion = '2.0.285';
var pdfjsBuild = '97466465';
var pdfjsCoreWorker = require('./core/worker.js');
exports.WorkerMessageHandler = pdfjsCoreWorker.WorkerMessageHandler;

2
package.json

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

Loading…
Cancel
Save