gtitsworth Posted March 28, 2007 Share Posted March 28, 2007 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! Quote Link to comment Share on other sites More sharing options...
dsaba Posted March 28, 2007 Share Posted March 28, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.