fixed error with getBytes in flate stream
This commit is contained in:
parent
78493db421
commit
0e8f323f0a
2
pdf.js
2
pdf.js
@ -329,7 +329,7 @@ var FlateStream = (function() {
|
|||||||
getBytes: function(length) {
|
getBytes: function(length) {
|
||||||
var pos = this.bufferPos;
|
var pos = this.bufferPos;
|
||||||
|
|
||||||
while (!this.eof && this.bufferLength < bufferPos + length)
|
while (!this.eof && this.bufferLength < pos + length)
|
||||||
this.readBlock();
|
this.readBlock();
|
||||||
|
|
||||||
var end = pos + length;
|
var end = pos + length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user