Jump to content

Converting a PDF to Images


gtitsworth

Recommended Posts

I am trying to create a way so that a user can upload a PDF file, and my code will automatically take the cover of the PDF (Page 1) and convert it to an image to use as a PDF preview in another page.  I have searched the web for a short period of time and found many ways to do the Image-->PDF conversion, but no articles on how to reverse the process.  Has anyone else come across this problem and found a way to do this or a more clever approach to previewing a PDF (without having to manually upload a separate image file when the PDF is uploaded)?  Any help or direction to any articles that could help would be greatly appreciated.  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/44592-converting-a-pdf-to-images/
Share on other sites

your only setback i see as now is figuring out how to "take a snapshot of the pdf file" with php

 

the rest is easy compared to that

 

I would research other similar technologies like how askjeeves takes a snapshot of websites

 

there is probably an API for this, search on google for some kind of "snapshot" technology

 

as far as php is concerned i know of NO function dealing with the gd library that can take pictures of things, or snapshots

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.