From 772df5e0cb5ec110acc6e61fcd676a9576fc028f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 31 Mar 2014 12:07:54 +0200 Subject: [PATCH] Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537) --- src/shared/annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/annotation.js b/src/shared/annotation.js index 4d34edf50..75e3f3444 100644 --- a/src/shared/annotation.js +++ b/src/shared/annotation.js @@ -80,7 +80,7 @@ var Annotation = (function AnnotationClosure() { var data = this.data = {}; data.subtype = dict.get('Subtype').name; - var rect = dict.get('Rect'); + var rect = dict.get('Rect') || [0, 0, 0, 0]; data.rect = Util.normalizeRect(rect); data.annotationFlags = dict.get('F');