Exemplo n.º 1
0
 def rasterize_wmf(self, name):
     from calibre.utils.wmf.parse import wmf_unwrap
     with open(name, 'rb') as f:
         data = f.read()
     data = wmf_unwrap(data)
     name = name.replace('.wmf', '.png')
     with open(name, 'wb') as f:
         f.write(data)
     return name
Exemplo n.º 2
0
 def rasterize_wmf(self, name):
     from calibre.utils.wmf.parse import wmf_unwrap
     with open(name, 'rb') as f:
         data = f.read()
     data = wmf_unwrap(data)
     name = name.replace('.wmf', '.png')
     with open(name, 'wb') as f:
         f.write(data)
     return name