stream cache bug fixed.

git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@67 1aa58f4a-7d42-0410-adbc-911cccaed67c
pull/1/head
yusuke.shinyama.dummy 2009-02-15 01:31:08 +00:00
parent ca1783c956
commit e63887e9d3
1 changed files with 2 additions and 2 deletions

View File

@ -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: