mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fixes reading unordered Subrs in Type1
This commit is contained in:
parent
869b8788ab
commit
8e298acb67
3 changed files with 11 additions and 4 deletions
|
@ -5315,11 +5315,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