Skip to content

Commit

Permalink
Merge pull request #5597 from timvandermeij/ccitt-regression
Browse files Browse the repository at this point in the history
CCITTFaxStream: fix regression when EncodedByteAlign is true and EndOfLine is false
  • Loading branch information
Snuffleupagus committed Dec 30, 2014
2 parents f1689cf + b835ef4 commit 6e66e30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,7 @@ var CCITTFaxStream = (function CCITTFaxStreamClosure() {

if (!this.eoblock && this.row === this.rows - 1) {
this.eof = true;
} else if (this.eoline || !this.byteAlign) {
} else {
code1 = this.lookBits(12);
if (this.eoline) {
while (code1 !== EOF && code1 !== 1) {
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/issue5592.pdf.link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://www.pdf-archive.com/2014/12/29/4111112/4111112.pdf
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1933,6 +1933,13 @@
"link": true,
"type": "eq"
},
{ "id": "issue5592",
"file": "pdfs/issue5592.pdf",
"md5": "a0750f95afa80c880f7966df7062616c",
"rounds": 1,
"link": true,
"type": "eq"
},
{ "id": "issue5549.pdf",
"file": "pdfs/issue5549.pdf",
"md5": "6c36df6ebc583c9e18aad0ad00d257b8",
Expand Down

0 comments on commit 6e66e30

Please sign in to comment.