mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #3268 from yurydelendik/issue-3207
Fixes reading unordered Subrs in Type1
This commit is contained in:
commit
59f2e71738
4 changed files with 12 additions and 4 deletions
|
@ -5331,11 +5331,8 @@ var Type1Parser = (function Type1ParserClosure() {
|
|||
case 'Subrs':
|
||||
var num = this.readInt();
|
||||
this.getToken(); // read in 'array'
|
||||
for (var j = 0; j < num; ++j) {
|
||||
token = this.getToken(); // read in 'dup'
|
||||
while ((token = this.getToken()) === 'dup') {
|
||||
var index = this.readInt();
|
||||
if (index > j)
|
||||
j = index;
|
||||
var length = this.readInt();
|
||||
this.getToken(); // read in 'RD' or '-|'
|
||||
var data = stream.makeSubStream(stream.pos + 1, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue