Browse Source

PDF.js version 1.1.326

master v1.1.326
Pdf Bot 10 years ago
parent
commit
4b4be2490f
  1. 2
      bower.json
  2. 24
      build/pdf.combined.js
  3. 4
      build/pdf.js
  4. 24
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

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

24
build/pdf.combined.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.324'; PDFJS.version = '1.1.326';
PDFJS.build = 'c42613b'; PDFJS.build = '8623421';
(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
@ -11354,10 +11354,11 @@ var Annotation = (function AnnotationClosure() {
var data = this.data = {}; var data = this.data = {};
data.subtype = dict.get('Subtype').name; data.subtype = dict.get('Subtype').name;
var rect = dict.get('Rect') || [0, 0, 0, 0];
data.rect = Util.normalizeRect(rect);
data.annotationFlags = dict.get('F'); data.annotationFlags = dict.get('F');
this.setRectangle(dict.get('Rect'));
data.rect = this.rectangle;
this.setColor(dict.get('C')); this.setColor(dict.get('C'));
data.color = this.color; data.color = this.color;
@ -11370,6 +11371,21 @@ var Annotation = (function AnnotationClosure() {
} }
Annotation.prototype = { Annotation.prototype = {
/**
* Set the rectangle.
*
* @public
* @memberof Annotation
* @param {Array} rectangle - The rectangle array with exactly four entries
*/
setRectangle: function Annotation_setRectangle(rectangle) {
if (isArray(rectangle) && rectangle.length === 4) {
this.rectangle = Util.normalizeRect(rectangle);
} else {
this.rectangle = [0, 0, 0, 0];
}
},
/** /**
* Set the color and take care of color space conversion. * Set the color and take care of color space conversion.
* *

4
build/pdf.js

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.324'; PDFJS.version = '1.1.326';
PDFJS.build = 'c42613b'; PDFJS.build = '8623421';
(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

24
build/pdf.worker.js vendored

@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
(typeof window !== 'undefined' ? window : this).PDFJS = {}; (typeof window !== 'undefined' ? window : this).PDFJS = {};
} }
PDFJS.version = '1.1.324'; PDFJS.version = '1.1.326';
PDFJS.build = 'c42613b'; PDFJS.build = '8623421';
(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
@ -4953,10 +4953,11 @@ var Annotation = (function AnnotationClosure() {
var data = this.data = {}; var data = this.data = {};
data.subtype = dict.get('Subtype').name; data.subtype = dict.get('Subtype').name;
var rect = dict.get('Rect') || [0, 0, 0, 0];
data.rect = Util.normalizeRect(rect);
data.annotationFlags = dict.get('F'); data.annotationFlags = dict.get('F');
this.setRectangle(dict.get('Rect'));
data.rect = this.rectangle;
this.setColor(dict.get('C')); this.setColor(dict.get('C'));
data.color = this.color; data.color = this.color;
@ -4969,6 +4970,21 @@ var Annotation = (function AnnotationClosure() {
} }
Annotation.prototype = { Annotation.prototype = {
/**
* Set the rectangle.
*
* @public
* @memberof Annotation
* @param {Array} rectangle - The rectangle array with exactly four entries
*/
setRectangle: function Annotation_setRectangle(rectangle) {
if (isArray(rectangle) && rectangle.length === 4) {
this.rectangle = Util.normalizeRect(rectangle);
} else {
this.rectangle = [0, 0, 0, 0];
}
},
/** /**
* Set the color and take care of color space conversion. * Set the color and take care of color space conversion.
* *

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "pdfjs-dist", "name": "pdfjs-dist",
"version": "1.1.324", "version": "1.1.326",
"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