|
@@ -22,8 +22,8 @@ if (typeof PDFJS === 'undefined') {
|
|
|
(typeof window !== 'undefined' ? window : this).PDFJS = {};
|
|
|
}
|
|
|
|
|
|
-PDFJS.version = '1.1.324';
|
|
|
-PDFJS.build = 'c42613b';
|
|
|
+PDFJS.version = '1.1.326';
|
|
|
+PDFJS.build = '8623421';
|
|
|
|
|
|
(function pdfjsWrapper() {
|
|
|
// Use strict in our context only - users might not want it
|
|
@@ -11354,10 +11354,11 @@ var Annotation = (function AnnotationClosure() {
|
|
|
var data = this.data = {};
|
|
|
|
|
|
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');
|
|
|
|
|
|
+ this.setRectangle(dict.get('Rect'));
|
|
|
+ data.rect = this.rectangle;
|
|
|
+
|
|
|
this.setColor(dict.get('C'));
|
|
|
data.color = this.color;
|
|
|
|
|
@@ -11370,6 +11371,21 @@ var Annotation = (function AnnotationClosure() {
|
|
|
}
|
|
|
|
|
|
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.
|
|
|
*
|