We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb8924a + 3a9b5b3 commit f954cdeCopy full SHA for f954cde
src/core/evaluator.js
@@ -139,6 +139,10 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
139
var w = dict.get('Width', 'W');
140
var h = dict.get('Height', 'H');
141
142
+ if (!(w && isNum(w)) || !(h && isNum(h))) {
143
+ warn('Image dimensions are missing, or not numbers.');
144
+ return;
145
+ }
146
if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
147
warn('Image exceeded maximum allowed size and was removed.');
148
return;
0 commit comments