Browse Source

PDF.js version 1.7.294 - See mozilla/pdf.js@8aad33e8a37f4a222b5d90f06c470ab33572a6a6

master v1.7.294
pdfjsbot 8 years ago
parent
commit
e632481470
  1. 2
      bower.json
  2. 52
      build/pdf.combined.js
  3. 12
      build/pdf.js
  4. 4
      build/pdf.min.js
  5. 44
      build/pdf.worker.js
  6. 14
      build/pdf.worker.min.js
  7. 2
      package.json

2
bower.json

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

52
build/pdf.combined.js

@ -20772,8 +20772,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -20772,8 +20772,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.292';
exports.build = 'fde609e8';
exports.version = '1.7.294';
exports.build = '8aad33e8';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;
@ -39533,8 +39533,8 @@ if (!globalScope.PDFJS) { @@ -39533,8 +39533,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.292';
PDFJS.build = 'fde609e8';
PDFJS.version = '1.7.294';
PDFJS.build = '8aad33e8';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -39682,6 +39682,7 @@ var Dict = corePrimitives.Dict; @@ -39682,6 +39682,7 @@ var Dict = corePrimitives.Dict;
var isDict = corePrimitives.isDict;
var isName = corePrimitives.isName;
var isRef = corePrimitives.isRef;
var isStream = corePrimitives.isStream;
var Stream = coreStream.Stream;
var ColorSpace = coreColorSpace.ColorSpace;
var Catalog = coreObj.Catalog;
@ -39775,30 +39776,13 @@ var Annotation = function AnnotationClosure() { @@ -39775,30 +39776,13 @@ var Annotation = function AnnotationClosure() {
rect[1] - minY * yRatio
];
}
function getDefaultAppearance(dict) {
var appearanceState = dict.get('AP');
if (!isDict(appearanceState)) {
return;
}
var appearance;
var appearances = appearanceState.get('N');
if (isDict(appearances)) {
var as = dict.get('AS');
if (as && appearances.has(as.name)) {
appearance = appearances.get(as.name);
}
} else {
appearance = appearances;
}
return appearance;
}
function Annotation(params) {
var dict = params.dict;
this.setFlags(dict.get('F'));
this.setRectangle(dict.getArray('Rect'));
this.setColor(dict.getArray('C'));
this.setBorderStyle(dict);
this.appearance = getDefaultAppearance(dict);
this.setAppearance(dict);
this.data = {};
this.data.id = params.id;
this.data.subtype = params.subtype;
@ -39902,6 +39886,26 @@ var Annotation = function AnnotationClosure() { @@ -39902,6 +39886,26 @@ var Annotation = function AnnotationClosure() {
this.borderStyle.setWidth(0);
}
},
setAppearance: function Annotation_setAppearance(dict) {
this.appearance = null;
var appearanceStates = dict.get('AP');
if (!isDict(appearanceStates)) {
return;
}
var normalAppearanceState = appearanceStates.get('N');
if (isStream(normalAppearanceState)) {
this.appearance = normalAppearanceState;
return;
}
if (!isDict(normalAppearanceState)) {
return;
}
var as = dict.get('AS');
if (!isName(as) || !normalAppearanceState.has(as.name)) {
return;
}
this.appearance = normalAppearanceState.get(as.name);
},
_preparePopup: function Annotation_preparePopup(dict) {
if (!dict.has('C')) {
this.data.color = null;
@ -57260,8 +57264,8 @@ exports.TilingPattern = TilingPattern; @@ -57260,8 +57264,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.7.292';
var pdfjsBuild = 'fde609e8';
var pdfjsVersion = '1.7.294';
var pdfjsBuild = '8aad33e8';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
var pdfjsDisplayAPI = __w_pdfjs_require__(10);

12
build/pdf.js

@ -4485,8 +4485,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() { @@ -4485,8 +4485,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
}
};
}();
exports.version = '1.7.292';
exports.build = 'fde609e8';
exports.version = '1.7.294';
exports.build = '8aad33e8';
exports.getDocument = getDocument;
exports.PDFDataRangeTransport = PDFDataRangeTransport;
exports.PDFWorker = PDFWorker;
@ -6502,8 +6502,8 @@ if (!globalScope.PDFJS) { @@ -6502,8 +6502,8 @@ if (!globalScope.PDFJS) {
globalScope.PDFJS = {};
}
var PDFJS = globalScope.PDFJS;
PDFJS.version = '1.7.292';
PDFJS.build = 'fde609e8';
PDFJS.version = '1.7.294';
PDFJS.build = '8aad33e8';
PDFJS.pdfBug = false;
if (PDFJS.verbosity !== undefined) {
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
@ -9185,8 +9185,8 @@ exports.TilingPattern = TilingPattern; @@ -9185,8 +9185,8 @@ exports.TilingPattern = TilingPattern;
"use strict";
var pdfjsVersion = '1.7.292';
var pdfjsBuild = 'fde609e8';
var pdfjsVersion = '1.7.294';
var pdfjsBuild = '8aad33e8';
var pdfjsSharedUtil = __w_pdfjs_require__(0);
var pdfjsDisplayGlobal = __w_pdfjs_require__(8);
var pdfjsDisplayAPI = __w_pdfjs_require__(3);

4
build/pdf.min.js vendored

File diff suppressed because one or more lines are too long

44
build/pdf.worker.js vendored

@ -35987,6 +35987,7 @@ var Dict = corePrimitives.Dict; @@ -35987,6 +35987,7 @@ var Dict = corePrimitives.Dict;
var isDict = corePrimitives.isDict;
var isName = corePrimitives.isName;
var isRef = corePrimitives.isRef;
var isStream = corePrimitives.isStream;
var Stream = coreStream.Stream;
var ColorSpace = coreColorSpace.ColorSpace;
var Catalog = coreObj.Catalog;
@ -36080,30 +36081,13 @@ var Annotation = function AnnotationClosure() { @@ -36080,30 +36081,13 @@ var Annotation = function AnnotationClosure() {
rect[1] - minY * yRatio
];
}
function getDefaultAppearance(dict) {
var appearanceState = dict.get('AP');
if (!isDict(appearanceState)) {
return;
}
var appearance;
var appearances = appearanceState.get('N');
if (isDict(appearances)) {
var as = dict.get('AS');
if (as && appearances.has(as.name)) {
appearance = appearances.get(as.name);
}
} else {
appearance = appearances;
}
return appearance;
}
function Annotation(params) {
var dict = params.dict;
this.setFlags(dict.get('F'));
this.setRectangle(dict.getArray('Rect'));
this.setColor(dict.getArray('C'));
this.setBorderStyle(dict);
this.appearance = getDefaultAppearance(dict);
this.setAppearance(dict);
this.data = {};
this.data.id = params.id;
this.data.subtype = params.subtype;
@ -36207,6 +36191,26 @@ var Annotation = function AnnotationClosure() { @@ -36207,6 +36191,26 @@ var Annotation = function AnnotationClosure() {
this.borderStyle.setWidth(0);
}
},
setAppearance: function Annotation_setAppearance(dict) {
this.appearance = null;
var appearanceStates = dict.get('AP');
if (!isDict(appearanceStates)) {
return;
}
var normalAppearanceState = appearanceStates.get('N');
if (isStream(normalAppearanceState)) {
this.appearance = normalAppearanceState;
return;
}
if (!isDict(normalAppearanceState)) {
return;
}
var as = dict.get('AS');
if (!isName(as) || !normalAppearanceState.has(as.name)) {
return;
}
this.appearance = normalAppearanceState.get(as.name);
},
_preparePopup: function Annotation_preparePopup(dict) {
if (!dict.has('C')) {
this.data.color = null;
@ -50518,8 +50522,8 @@ exports.Type1Parser = Type1Parser; @@ -50518,8 +50522,8 @@ exports.Type1Parser = Type1Parser;
"use strict";
var pdfjsVersion = '1.7.292';
var pdfjsBuild = 'fde609e8';
var pdfjsVersion = '1.7.294';
var pdfjsBuild = '8aad33e8';
var pdfjsCoreWorker = __w_pdfjs_require__(8);
{
__w_pdfjs_require__(18);

14
build/pdf.worker.min.js vendored

File diff suppressed because one or more lines are too long

2
package.json

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

Loading…
Cancel
Save