@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits=0;
this.inputBuf=0;
this.outputBits=0;
this.rowsDone=false;
varcode1;
while((code1=this.lookBits(12))===0){
this.eatBits(1);
@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
varcolumns=this.columns;
varrefPos,blackPixels,bits,i;
if(this.outputBits===0){
if(this.rowsDone){
this.eof=true;
}
if(this.eof){
returnnull;
}
@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits&=~7;
}
if(!this.eoblock&&this.row===this.rows-1){
this.eof=true;
this.rowsDone=true;
}else{
code1=this.lookBits(12);
if(this.eoline){
@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.eof=true;
}
}
if(!this.eof&&this.encoding>0){
if(!this.eof&&this.encoding>0&&!this.rowsDone){
this.nextLine2D=!this.lookBits(1);
this.eatBits(1);
}
@ -13500,8 +13504,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -13500,8 +13504,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@ -4204,8 +4204,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -4204,8 +4204,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -2820,6 +2820,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits=0;
this.inputBuf=0;
this.outputBits=0;
this.rowsDone=false;
varcode1;
while((code1=this.lookBits(12))===0){
this.eatBits(1);
@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -2889,6 +2890,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
varcolumns=this.columns;
varrefPos,blackPixels,bits,i;
if(this.outputBits===0){
if(this.rowsDone){
this.eof=true;
}
if(this.eof){
returnnull;
}
@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -3054,7 +3058,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits&=~7;
}
if(!this.eoblock&&this.row===this.rows-1){
this.eof=true;
this.rowsDone=true;
}else{
code1=this.lookBits(12);
if(this.eoline){
@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -3075,7 +3079,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@ -1096,6 +1096,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -1096,6 +1096,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits=0;
this.inputBuf=0;
this.outputBits=0;
this.rowsDone=false;
varcode1;
while((code1=this.lookBits(12))===0){
this.eatBits(1);
@ -1165,6 +1166,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -1165,6 +1166,9 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
varcolumns=this.columns;
varrefPos,blackPixels,bits,i;
if(this.outputBits===0){
if(this.rowsDone){
this.eof=true;
}
if(this.eof){
returnnull;
}
@ -1330,7 +1334,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -1330,7 +1334,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
this.inputBits&=~7;
}
if(!this.eoblock&&this.row===this.rows-1){
this.eof=true;
this.rowsDone=true;
}else{
code1=this.lookBits(12);
if(this.eoline){
@ -1351,7 +1355,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@@ -1351,7 +1355,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() {
@ -1582,8 +1582,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
@@ -1582,8 +1582,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {