commit
5193cf7ef8
@ -550,7 +550,7 @@ var XRef = (function XRefClosure() {
|
|||||||
if (!('streamState' in this)) {
|
if (!('streamState' in this)) {
|
||||||
// Stores state of the stream as we process it so we can resume
|
// Stores state of the stream as we process it so we can resume
|
||||||
// from middle of stream in case of missing data error
|
// from middle of stream in case of missing data error
|
||||||
var streamParameters = stream.parameters;
|
var streamParameters = stream.dict;
|
||||||
var byteWidths = streamParameters.get('W');
|
var byteWidths = streamParameters.get('W');
|
||||||
var range = streamParameters.get('Index');
|
var range = streamParameters.get('Index');
|
||||||
if (!range) {
|
if (!range) {
|
||||||
@ -567,7 +567,7 @@ var XRef = (function XRefClosure() {
|
|||||||
this.readXRefStream(stream);
|
this.readXRefStream(stream);
|
||||||
delete this.streamState;
|
delete this.streamState;
|
||||||
|
|
||||||
return stream.parameters;
|
return stream.dict;
|
||||||
},
|
},
|
||||||
|
|
||||||
readXRefStream: function XRef_readXRefStream(stream) {
|
readXRefStream: function XRef_readXRefStream(stream) {
|
||||||
@ -903,8 +903,8 @@ var XRef = (function XRefClosure() {
|
|||||||
stream = this.fetch(new Ref(tableOffset, 0));
|
stream = this.fetch(new Ref(tableOffset, 0));
|
||||||
if (!isStream(stream))
|
if (!isStream(stream))
|
||||||
error('bad ObjStm stream');
|
error('bad ObjStm stream');
|
||||||
var first = stream.parameters.get('First');
|
var first = stream.dict.get('First');
|
||||||
var n = stream.parameters.get('N');
|
var n = stream.dict.get('N');
|
||||||
if (!isInt(first) || !isInt(n)) {
|
if (!isInt(first) || !isInt(n)) {
|
||||||
error('invalid first and n parameters for ObjStm stream');
|
error('invalid first and n parameters for ObjStm stream');
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ var Parser = (function ParserClosure() {
|
|||||||
if (cipherTransform)
|
if (cipherTransform)
|
||||||
imageStream = cipherTransform.createStream(imageStream);
|
imageStream = cipherTransform.createStream(imageStream);
|
||||||
imageStream = this.filter(imageStream, dict, length);
|
imageStream = this.filter(imageStream, dict, length);
|
||||||
imageStream.parameters = dict;
|
imageStream.dict = dict;
|
||||||
|
|
||||||
this.buf2 = Cmd.get('EI');
|
this.buf2 = Cmd.get('EI');
|
||||||
this.shift();
|
this.shift();
|
||||||
@ -216,7 +216,7 @@ var Parser = (function ParserClosure() {
|
|||||||
if (cipherTransform)
|
if (cipherTransform)
|
||||||
stream = cipherTransform.createStream(stream);
|
stream = cipherTransform.createStream(stream);
|
||||||
stream = this.filter(stream, dict, length);
|
stream = this.filter(stream, dict, length);
|
||||||
stream.parameters = dict;
|
stream.dict = dict;
|
||||||
return stream;
|
return stream;
|
||||||
},
|
},
|
||||||
filter: function Parser_filter(stream, dict, length) {
|
filter: function Parser_filter(stream, dict, length) {
|
||||||
|
@ -26,7 +26,7 @@ var Stream = (function StreamClosure() {
|
|||||||
this.start = start || 0;
|
this.start = start || 0;
|
||||||
this.pos = this.start;
|
this.pos = this.start;
|
||||||
this.end = (start + length) || this.bytes.length;
|
this.end = (start + length) || this.bytes.length;
|
||||||
this.parameters = this.dict = dict;
|
this.dict = dict;
|
||||||
}
|
}
|
||||||
|
|
||||||
// required methods for a stream. if a particular stream does not
|
// required methods for a stream. if a particular stream does not
|
||||||
|
1
test/pdfs/issue2881.pdf.link
Normal file
1
test/pdfs/issue2881.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://www.heartfoundation.org.au/SiteCollectionDocuments/Hypertension-guidelines-ambulartory-blood-pressure-monitoring-Position-statement.pdf
|
@ -23,6 +23,14 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue2881",
|
||||||
|
"file": "pdfs/issue2881.pdf",
|
||||||
|
"md5": "ea6ade27d2cb146676d23dcd6605d5ee",
|
||||||
|
"link": "true",
|
||||||
|
"rounds": 1,
|
||||||
|
"lastPage": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue2391-1",
|
{ "id": "issue2391-1",
|
||||||
"file": "pdfs/issue2391-1.pdf",
|
"file": "pdfs/issue2391-1.pdf",
|
||||||
"md5": "25ae9cb959612e7b343b55da63af2716",
|
"md5": "25ae9cb959612e7b343b55da63af2716",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user