Browse Source

PDF.js version 1.0.229

master v1.0.229
Yury Delendik 11 years ago
parent
commit
6453c81676
  1. 2
      bower.json
  2. 891
      build/pdf.combined.js
  3. 36
      build/pdf.js
  4. 891
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.226", "version": "1.0.229",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",
"pdf", "pdf",

891
build/pdf.combined.js

File diff suppressed because it is too large Load Diff

36
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.0.226'; PDFJS.version = '1.0.229';
PDFJS.build = '09b24d5'; PDFJS.build = '7079992';
(function pdfjsWrapper() { (function pdfjsWrapper() {
// Use strict in our context only - users might not want it // Use strict in our context only - users might not want it
@ -3386,11 +3386,9 @@ var Annotation = (function AnnotationClosure() {
}, },
getOperatorList: function Annotation_getOperatorList(evaluator) { getOperatorList: function Annotation_getOperatorList(evaluator) {
var capability = createPromiseCapability();
if (!this.appearance) { if (!this.appearance) {
capability.resolve(new OperatorList()); return Promise.resolve(new OperatorList());
return capability.promise;
} }
var data = this.data; var data = this.data;
@ -3409,18 +3407,18 @@ var Annotation = (function AnnotationClosure() {
var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1]; var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0]; var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
var transform = getTransformMatrix(data.rect, bbox, matrix); var transform = getTransformMatrix(data.rect, bbox, matrix);
var self = this;
resourcesPromise.then(function(resources) { return resourcesPromise.then(function(resources) {
var opList = new OperatorList(); var opList = new OperatorList();
opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]); opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
evaluator.getOperatorList(this.appearance, resources, opList); return evaluator.getOperatorList(self.appearance, resources, opList).
opList.addOp(OPS.endAnnotation, []); then(function () {
capability.resolve(opList); opList.addOp(OPS.endAnnotation, []);
self.appearance.reset();
this.appearance.reset(); return opList;
}.bind(this), capability.reject); });
});
return capability.promise;
} }
}; };
@ -3679,8 +3677,10 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
} }
var stream = new Stream(stringToBytes(data.defaultAppearance)); var stream = new Stream(stringToBytes(data.defaultAppearance));
evaluator.getOperatorList(stream, this.fieldResources, opList); return evaluator.getOperatorList(stream, this.fieldResources, opList).
return Promise.resolve(opList); then(function () {
return opList;
});
} }
}); });

891
build/pdf.worker.js vendored

File diff suppressed because it is too large Load Diff

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.0.226", "version": "1.0.229",
"description": "Generic build of Mozilla's PDF.js library.", "description": "Generic build of Mozilla's PDF.js library.",
"keywords": [ "keywords": [
"Mozilla", "Mozilla",

Loading…
Cancel
Save