Not ignoring MissingDataException exception.
This commit is contained in:
parent
ab67e1c272
commit
fbdab2c7c5
@ -18,7 +18,7 @@
|
|||||||
FlateStream, isArray, isCmd, isDict, isInt, isName, isNum, isRef,
|
FlateStream, isArray, isCmd, isDict, isInt, isName, isNum, isRef,
|
||||||
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name,
|
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name,
|
||||||
NullStream, PredictorStream, Ref, RunLengthStream, warn, info,
|
NullStream, PredictorStream, Ref, RunLengthStream, warn, info,
|
||||||
StreamType */
|
StreamType, MissingDataException */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@ -398,6 +398,9 @@ var Parser = (function ParserClosure() {
|
|||||||
warn('filter "' + name + '" not supported yet');
|
warn('filter "' + name + '" not supported yet');
|
||||||
return stream;
|
return stream;
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
|
if (ex instanceof MissingDataException) {
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
warn('Invalid stream: \"' + ex + '\"');
|
warn('Invalid stream: \"' + ex + '\"');
|
||||||
return new NullStream(stream);
|
return new NullStream(stream);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user