|
|
@ -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'; |
|
|
|
|
|
|
|
|
|
|
@ -344,6 +344,7 @@ var Parser = (function ParserClosure() { |
|
|
|
if (stream.dict.get('Length') === 0) { |
|
|
|
if (stream.dict.get('Length') === 0) { |
|
|
|
return new NullStream(stream); |
|
|
|
return new NullStream(stream); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
var xrefStreamStats = this.xref.stats.streamTypes; |
|
|
|
var xrefStreamStats = this.xref.stats.streamTypes; |
|
|
|
if (name == 'FlateDecode' || name == 'Fl') { |
|
|
|
if (name == 'FlateDecode' || name == 'Fl') { |
|
|
|
xrefStreamStats[StreamType.FLATE] = true; |
|
|
|
xrefStreamStats[StreamType.FLATE] = true; |
|
|
@ -396,6 +397,13 @@ var Parser = (function ParserClosure() { |
|
|
|
} |
|
|
|
} |
|
|
|
warn('filter "' + name + '" not supported yet'); |
|
|
|
warn('filter "' + name + '" not supported yet'); |
|
|
|
return stream; |
|
|
|
return stream; |
|
|
|
|
|
|
|
} catch (ex) { |
|
|
|
|
|
|
|
if (ex instanceof MissingDataException) { |
|
|
|
|
|
|
|
throw ex; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
warn('Invalid stream: \"' + ex + '\"'); |
|
|
|
|
|
|
|
return new NullStream(stream); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|