How do I turn a PDF email attachment to an image (jpg) in a PHP page?

Posted by user351630 on Stack Overflow See other posts from Stack Overflow or by user351630
Published on 2010-05-27T06:09:44Z Indexed on 2010/05/27 6:11 UTC
Read the original article Hit count: 149

Filed under:
|
|
|
|

Hi guys. Long time viewer, first time question asker.

I'm trying to have my personal website parse through my mail box for attachments from a certain subscription list, and then be able to view the PDF attachments as images, preferably jpg.

With the help of this: http://www.linuxscope.net/articles/mailAttachmentsPHP.html I'm currently using imap_base64() to decode the MIME data and create the PDF. However, I hate using PDF readers in general and I thought it would be a lot more streamlined if I could just view it as an image instead. I've heard for convert with ImageMagick, but would I need to actually write the PDF to a directory before using this, or can I convert somehow directly from the MIME data in the email?

Thanks in advanced!

© Stack Overflow or respective owner

Related posts about php

Related posts about pdf