How do I turn a PDF email attachment to an image (jpg) in a PHP page?
- by user351630
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!