From f362b3c744034eaff92bf31edde5baee19095993 Mon Sep 17 00:00:00 2001 From: Samuel Chantaraud Date: Tue, 10 Jun 2014 22:19:17 -0400 Subject: [PATCH] Fix #4914 by ignoring hidden annotation --- src/shared/annotation.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/shared/annotation.js b/src/shared/annotation.js index 7e1c256ad..8eae8c27f 100644 --- a/src/shared/annotation.js +++ b/src/shared/annotation.js @@ -189,7 +189,7 @@ var Annotation = (function AnnotationClosure() { data && (!data.annotationFlags || !(data.annotationFlags & 0x22)) && // Hidden or NoView - data.rect); // rectangle is nessessary + data.rect); // rectangle is necessary }, isPrintable: function Annotation_isPrintable() { @@ -198,7 +198,8 @@ var Annotation = (function AnnotationClosure() { data && data.annotationFlags && // Default: not printable data.annotationFlags & 0x4 && // Print - data.rect); // rectangle is nessessary + !(data.annotationFlags & 0x2) && // Hidden + data.rect); // rectangle is necessary }, loadResources: function Annotation_loadResources(keys) { @@ -323,7 +324,9 @@ var Annotation = (function AnnotationClosure() { if (annotation.isViewable() || annotation.isPrintable()) { return annotation; } else { - warn('unimplemented annotation type: ' + subtype); + if (SUPPORTED_TYPES.indexOf(subtype) === -1) { + warn('unimplemented annotation type: ' + subtype); + } } };