- c = cover(document.book_info)
- with open(os.path.join(temp, 'cover.png'), 'w') as f:
- c.save(f)
+ with open(os.path.join(temp, 'cover.jpg'), 'w') as f:
+ the_cover.save(f)
+
+ shutil.copy("cce_trust.eps", temp)
+ shutil.copy("logo.eps", temp)
+ for img in document.edoc.findall('//ilustr'):
+ # print "--->> %s %s %s" % (imgdir, img, img.get('src'))
+ shutil.copy(os.path.join(imgdir, img.get('src')), temp)
+