diff --git a/src/core/annotation.js b/src/core/annotation.js index 0fd275c74..0a1a46bd9 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -48,6 +48,7 @@ import { lookupMatrix, lookupNormalRect, lookupRect, + MissingDataException, numberToString, RESOURCES_KEYS_OPERATOR_LIST, RESOURCES_KEYS_TEXT_CONTENT, @@ -1208,6 +1209,9 @@ class Annotation { /* resources = */ null ); } catch (ex) { + if (ex instanceof MissingDataException) { + throw ex; + } warn(`#setOptionalContent: ${ex}`); } }