mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #1550 from brendandahl/erroronjbig2
Error on jbig2. Add 'RL' abbreviation for run length decode.
This commit is contained in:
commit
e014b62ba7
1 changed files with 4 additions and 1 deletions
|
@ -249,9 +249,12 @@ var Parser = (function ParserClosure() {
|
|||
if (name == 'CCITTFaxDecode' || name == 'CCF') {
|
||||
return new CCITTFaxStream(stream, params);
|
||||
}
|
||||
if (name == 'RunLengthDecode') {
|
||||
if (name == 'RunLengthDecode' || name == 'RL') {
|
||||
return new RunLengthStream(stream);
|
||||
}
|
||||
if (name == 'JBIG2Decode') {
|
||||
error('JBIG2 image format is not currently supprted.');
|
||||
}
|
||||
warn('filter "' + name + '" not supported yet');
|
||||
return stream;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue