Does conversion work?

12 views
Skip to first unread message

Massimiliano Pietroni

unread,
Mar 31, 2012, 5:45:09 AM3/31/12
to google-a...@googlegroups.com
Does Convertion work?

I'm using this code:

def receive(self, mail_message):
       
for elemento in mail_message.attachments:
            asset
= conversion.Asset("application/pdf", str(elemento[1]))
            conversion_obj
= conversion.Conversion(asset, "image/png", 800, 1)
            result
= conversion.convert(conversion_obj)


Then I have a if statement and I have no result in result.assets.
I'm trying to convert a PDF mail attachment in a PNG. Is there something wrong?

Thanks

Max
Reply all
Reply to author
Forward
0 new messages