Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)

This commit is contained in:
Jonas Jenwald 2014-03-31 12:07:54 +02:00
parent 7d5bf83ce8
commit 772df5e0cb

View File

@ -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');