Skip to content

Commit a3dd009

Browse files
committed
Merge pull request mozilla#2571 from mduan/issue2129
Do not error when an EndOfPage segment is encountered in jbig2
2 parents ab8caaa + 317db2e commit a3dd009

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/jbig2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ var Jbig2Image = (function Jbig2ImageClosure() {
897897
pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
898898
args = [pageInfo];
899899
break;
900+
case 49: // EndOfPage
901+
break;
900902
case 50: // EndOfStripe
901903
break;
902904
case 51: // EndOfFile

test/pdfs/issue2129.pdf.link

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://docs.dpaq.de/1737-itcsamsungapple337_794notice14092012.pdf

test/test_manifest.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
"rounds": 1,
4747
"type": "load"
4848
},
49+
{ "id": "issue2129",
50+
"file": "pdfs/issue2129.pdf",
51+
"md5": "b082dd2cb3648f979fd668f498af14d6",
52+
"link": true,
53+
"pageLimit": 1,
54+
"rounds": 1,
55+
"type": "load"
56+
},
4957
{ "id": "shavian-load",
5058
"file": "pdfs/shavian.pdf",
5159
"md5": "40ef97a120250b149c4ded383ca328ec",

0 commit comments

Comments
 (0)