Fixed: #56 (with a derpy fix)

pull/1/head
Yusuke Shinyama 2014-06-18 19:11:45 +09:00
parent bb866ae148
commit 81391c09f4
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class PDFPage(object):
self.pageid = pageid
self.attrs = dict_value(attrs)
self.lastmod = resolve1(self.attrs.get('LastModified'))
self.resources = resolve1(self.attrs['Resources'])
self.resources = resolve1(self.attrs.get('Resources', dict()))
self.mediabox = resolve1(self.attrs['MediaBox'])
if 'CropBox' in self.attrs:
self.cropbox = resolve1(self.attrs['CropBox'])