Fixing lint errors; extra empty lines
This commit is contained in:
parent
0f7f80ee6e
commit
01a96fdddf
@ -518,12 +518,15 @@ var XRef = (function xRefXRef() {
|
|||||||
readXRef: function readXref(startXRef) {
|
readXRef: function readXref(startXRef) {
|
||||||
var stream = this.stream;
|
var stream = this.stream;
|
||||||
stream.pos = startXRef;
|
stream.pos = startXRef;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var parser = new Parser(new Lexer(stream), true);
|
var parser = new Parser(new Lexer(stream), true);
|
||||||
var obj = parser.getObj();
|
var obj = parser.getObj();
|
||||||
|
|
||||||
// parse an old-style xref table
|
// parse an old-style xref table
|
||||||
if (isCmd(obj, 'xref'))
|
if (isCmd(obj, 'xref'))
|
||||||
return this.readXRefTable(parser);
|
return this.readXRefTable(parser);
|
||||||
|
|
||||||
// parse an xref stream
|
// parse an xref stream
|
||||||
if (isInt(obj)) {
|
if (isInt(obj)) {
|
||||||
if (!isInt(parser.getObj()) ||
|
if (!isInt(parser.getObj()) ||
|
||||||
@ -533,9 +536,10 @@ var XRef = (function xRefXRef() {
|
|||||||
}
|
}
|
||||||
return this.readXRefStream(obj);
|
return this.readXRefStream(obj);
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch (e) {
|
||||||
log('Reading of the xref table/stream failed: ' + e);
|
log('Reading of the xref table/stream failed: ' + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
warn('Indexing all PDF objects');
|
warn('Indexing all PDF objects');
|
||||||
return this.indexObjects();
|
return this.indexObjects();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user