Fetches params in makeFilter
This commit is contained in:
parent
b3be74d81c
commit
aa8d3d98f8
@ -346,6 +346,9 @@ var Parser = (function ParserClosure() {
|
||||
return new NullStream(stream);
|
||||
}
|
||||
try {
|
||||
if (params) {
|
||||
params = this.fetchIfRef(params);
|
||||
}
|
||||
var xrefStreamStats = this.xref.stats.streamTypes;
|
||||
if (name === 'FlateDecode' || name === 'Fl') {
|
||||
xrefStreamStats[StreamType.FLATE] = true;
|
||||
@ -386,7 +389,6 @@ var Parser = (function ParserClosure() {
|
||||
}
|
||||
if (name === 'CCITTFaxDecode' || name === 'CCF') {
|
||||
xrefStreamStats[StreamType.CCF] = true;
|
||||
params = this.fetchIfRef(params);
|
||||
return new CCITTFaxStream(stream, maybeLength, params);
|
||||
}
|
||||
if (name === 'RunLengthDecode' || name === 'RL') {
|
||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -18,6 +18,7 @@
|
||||
!sizes.pdf
|
||||
!close-path-bug.pdf
|
||||
!issue4630.pdf
|
||||
!issue5280.pdf
|
||||
!alphatrans.pdf
|
||||
!devicen.pdf
|
||||
!cmykjpeg.pdf
|
||||
|
BIN
test/pdfs/issue5280.pdf
Normal file
BIN
test/pdfs/issue5280.pdf
Normal file
Binary file not shown.
@ -1527,6 +1527,14 @@
|
||||
"type": "eq",
|
||||
"about": "True type font with encoding dict with no base encoding but with differences."
|
||||
},
|
||||
{ "id": "issue5280",
|
||||
"file": "pdfs/issue5280.pdf",
|
||||
"md5": "0ea1230e2964e74cb6db063a89b78803",
|
||||
"rounds": 1,
|
||||
"link": false,
|
||||
"type": "eq",
|
||||
"about": "DecodeParams can be an indirect object"
|
||||
},
|
||||
{ "id": "bug878194",
|
||||
"file": "pdfs/bug878194.pdf",
|
||||
"md5": "c616b21fd2a1a65acc2de0f41e59a8b5",
|
||||
|
Loading…
Reference in New Issue
Block a user