mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Prevent failures in the Annotation code if the Rect
array contains indirect objects (issue 7115)
Note that in the PDF files provided by the reporter, this issue was limited to `Rect` arrays in AcroForm entries (which we currently don't support). However, since a bad PDF generator could create this problem in *any* kind of annotation, the reduced test-case included here uses a simple LinkAnnotation instead. Fixes 7115.
This commit is contained in:
parent
df7afcf004
commit
13d7a5070e
4 changed files with 108 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue