Skip to content

Commit

Permalink
Do not draw a border if neither a Border nor a BS entry is present
Browse files Browse the repository at this point in the history
Fixes #6179.
  • Loading branch information
timvandermeij committed Jul 6, 2015
1 parent 56e3a66 commit 3a6eed6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/annotation.js
Expand Up @@ -144,6 +144,13 @@ var Annotation = (function AnnotationClosure() {
this.borderStyle.setDashArray(array[3]);
}
}
} else {
// There are no border entries in the dictionary. According to the
// specification, we should draw a solid border of width 1 in that
// case, but Adobe Reader did not implement that part of the
// specification and instead draws no border at all, so we do the same.
// See also https://github.com/mozilla/pdf.js/issues/6179.
this.borderStyle.setWidth(0);
}
},

Expand Down

0 comments on commit 3a6eed6

Please sign in to comment.