mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Workaround for missing 'Rect' entry in annotation dictionaries (issue 4537)
This commit is contained in:
parent
7d5bf83ce8
commit
772df5e0cb
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue