diff --git a/src/core/annotation.js b/src/core/annotation.js index b5bc36a2327e1..b77ab4eabf5df 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -171,7 +171,7 @@ var Annotation = (function AnnotationClosure() { var dict = params.dict; this.setFlags(dict.get('F')); - this.setRectangle(dict.get('Rect')); + this.setRectangle(dict.getArray('Rect')); this.setColor(dict.get('C')); this.setBorderStyle(dict); this.appearance = getDefaultAppearance(dict); diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 8806c0339ce6c..a86090e9a9174 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -20,6 +20,7 @@ !issue6782.pdf !issue6961.pdf !issue7020.pdf +!issue7115.pdf !filled-background.pdf !ArabicCIDTrueType.pdf !ThuluthFeatures.pdf diff --git a/test/pdfs/issue7115.pdf b/test/pdfs/issue7115.pdf new file mode 100644 index 0000000000000..2b357caed088f Binary files /dev/null and b/test/pdfs/issue7115.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index 4ffa234e2f1c7..6113fcdd98286 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -577,6 +577,15 @@ "type": "eq", "about": "XObject with BBox array containing indirect object." }, + { "id": "issue7115", + "file": "pdfs/issue7115.pdf", + "md5": "63c78e25a0433dd5a01ddff6ec720f29", + "link": false, + "rounds": 1, + "type": "eq", + "annotations": true, + "about": "Annotation with Rect array containing indirect objects." + }, { "id": "issue4934", "file": "pdfs/issue4934.pdf", "md5": "6099da44f677702ae65a648b51a2226d",