mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Extracts evaluator preprocessor and refactor text extraction
This commit is contained in:
parent
455265474a
commit
09f8f951c8
4 changed files with 289 additions and 264 deletions
|
@ -36,21 +36,6 @@ var Parser = (function ParserClosure() {
|
|||
}
|
||||
|
||||
Parser.prototype = {
|
||||
saveState: function Parser_saveState() {
|
||||
this.state = {
|
||||
buf1: this.buf1,
|
||||
buf2: this.buf2,
|
||||
streamPos: this.lexer.stream.pos
|
||||
};
|
||||
},
|
||||
|
||||
restoreState: function Parser_restoreState() {
|
||||
var state = this.state;
|
||||
this.buf1 = state.buf1;
|
||||
this.buf2 = state.buf2;
|
||||
this.lexer.stream.pos = state.streamPos;
|
||||
},
|
||||
|
||||
refill: function Parser_refill() {
|
||||
this.buf1 = this.lexer.getObj();
|
||||
this.buf2 = this.lexer.getObj();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue