Browse Source

Merge pull request #4915 from dferer/fix-4914

Fix #4914
Yury Delendik 11 years ago
parent
commit
b37b33829e
  1. 9
      src/shared/annotation.js

9
src/shared/annotation.js

@ -189,7 +189,7 @@ var Annotation = (function AnnotationClosure() { @@ -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() { @@ -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() { @@ -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);
}
}
};

Loading…
Cancel
Save