|
|
|
@ -17,7 +17,7 @@
@@ -17,7 +17,7 @@
|
|
|
|
|
/* globals Ascii85Stream, AsciiHexStream, CCITTFaxStream, Cmd, Dict, error, |
|
|
|
|
FlateStream, isArray, isCmd, isDict, isInt, isName, isNum, isRef, |
|
|
|
|
isString, Jbig2Stream, JpegStream, JpxStream, LZWStream, Name, |
|
|
|
|
NullStream, PredictorStream, Ref, RunLengthStream, warn */ |
|
|
|
|
NullStream, PredictorStream, Ref, RunLengthStream, warn, info */ |
|
|
|
|
|
|
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
@ -85,8 +85,11 @@ var Parser = (function ParserClosure() {
@@ -85,8 +85,11 @@ var Parser = (function ParserClosure() {
|
|
|
|
|
this.shift(); |
|
|
|
|
var dict = new Dict(this.xref); |
|
|
|
|
while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) { |
|
|
|
|
if (!isName(this.buf1)) |
|
|
|
|
error('Dictionary key must be a name object'); |
|
|
|
|
if (!isName(this.buf1)) { |
|
|
|
|
info('Malformed dictionary, key must be a name object'); |
|
|
|
|
this.shift(); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var key = this.buf1.name; |
|
|
|
|
this.shift(); |
|
|
|
|