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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.