stream cache bug fixed.
git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@67 1aa58f4a-7d42-0410-adbc-911cccaed67cpull/1/head
parent
ca1783c956
commit
e63887e9d3
|
@ -361,7 +361,7 @@ class PDFDocument(object):
|
|||
raise PDFSyntaxError('N is not defined: %r' % stream)
|
||||
n = 0
|
||||
if strmid in self.parsed_objs:
|
||||
objs = self.parsed_objs[stream]
|
||||
objs = self.parsed_objs[strmid]
|
||||
else:
|
||||
parser = PDFObjStrmParser(self, stream.get_data())
|
||||
objs = []
|
||||
|
@ -371,7 +371,7 @@ class PDFDocument(object):
|
|||
objs.append(obj)
|
||||
except PSEOF:
|
||||
pass
|
||||
self.parsed_objs[stream] = objs
|
||||
self.parsed_objs[strmid] = objs
|
||||
genno = 0
|
||||
i = n*2+index
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue