mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Do not error when an EndOfPage segment is encountered in jbig2
This commit is contained in:
parent
4fa82683fa
commit
317db2e7c6
3 changed files with 11 additions and 0 deletions
|
@ -897,6 +897,8 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
||||||
pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
|
pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
|
||||||
args = [pageInfo];
|
args = [pageInfo];
|
||||||
break;
|
break;
|
||||||
|
case 49: // EndOfPage
|
||||||
|
break;
|
||||||
case 50: // EndOfStripe
|
case 50: // EndOfStripe
|
||||||
break;
|
break;
|
||||||
case 51: // EndOfFile
|
case 51: // EndOfFile
|
||||||
|
|
1
test/pdfs/issue2129.pdf.link
Normal file
1
test/pdfs/issue2129.pdf.link
Normal file
|
@ -0,0 +1 @@
|
||||||
|
http://docs.dpaq.de/1737-itcsamsungapple337_794notice14092012.pdf
|
|
@ -39,6 +39,14 @@
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "load"
|
"type": "load"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue2129",
|
||||||
|
"file": "pdfs/issue2129.pdf",
|
||||||
|
"md5": "b082dd2cb3648f979fd668f498af14d6",
|
||||||
|
"link": true,
|
||||||
|
"pageLimit": 1,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "load"
|
||||||
|
},
|
||||||
{ "id": "shavian-load",
|
{ "id": "shavian-load",
|
||||||
"file": "pdfs/shavian.pdf",
|
"file": "pdfs/shavian.pdf",
|
||||||
"md5": "40ef97a120250b149c4ded383ca328ec",
|
"md5": "40ef97a120250b149c4ded383ca328ec",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue