diff --git a/src/core/stream.js b/src/core/stream.js index 4145b416b..e08114ad5 100644 --- a/src/core/stream.js +++ b/src/core/stream.js @@ -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) { diff --git a/test/pdfs/issue5592.pdf.link b/test/pdfs/issue5592.pdf.link new file mode 100644 index 000000000..19ffbb41f --- /dev/null +++ b/test/pdfs/issue5592.pdf.link @@ -0,0 +1 @@ +http://www.pdf-archive.com/2014/12/29/4111112/4111112.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 8d63462a6..7b919dacc 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -1926,6 +1926,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",