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)
|
raise PDFSyntaxError('N is not defined: %r' % stream)
|
||||||
n = 0
|
n = 0
|
||||||
if strmid in self.parsed_objs:
|
if strmid in self.parsed_objs:
|
||||||
objs = self.parsed_objs[stream]
|
objs = self.parsed_objs[strmid]
|
||||||
else:
|
else:
|
||||||
parser = PDFObjStrmParser(self, stream.get_data())
|
parser = PDFObjStrmParser(self, stream.get_data())
|
||||||
objs = []
|
objs = []
|
||||||
|
@ -371,7 +371,7 @@ class PDFDocument(object):
|
||||||
objs.append(obj)
|
objs.append(obj)
|
||||||
except PSEOF:
|
except PSEOF:
|
||||||
pass
|
pass
|
||||||
self.parsed_objs[stream] = objs
|
self.parsed_objs[strmid] = objs
|
||||||
genno = 0
|
genno = 0
|
||||||
i = n*2+index
|
i = n*2+index
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue