The PDF To ImageField module provides automatic conversion of uploaded PDF files to images.
It can be used either to create a snapshot of the front page to use as a preview thumbnail, or to generate a gallery of images from each page in the document.
The module is implemented as CCK widget for FileField where PDFs are uploaded to. It places generated images into a CCK ImageField on the same content type.
Requirements:
D6
D7
Either:
Installation
Once the module is enabled, check your site status at /admin/reports/status .You should see a message that will tell you if your system is ready to run.
If not, you need to check the requirements, and the ImageMagick settings at /admin/settings/imageapi/config/imageapi_imagemagick
. See the ImageAPI project docs for troubleshooting that. Generally you would need to enter the path to ImageMagick there - this can be found by goinf which convert
on your server, or your host may provide that information. The default is /usr/bin/convert
If ImageMagick appears to be available but still does not convert PDFs, it could be it wasn't installed with 'Ghostscript' libraries or other required dependencies. You'll have to go to the ImageMagick forums for help with that.
Configuration
Processing
Processing of PDF may take some time.
Larger documents use the 'batch' process to generate each page.
Quickstart
There is a drush make file and a 'Features' demo example you can use to help set
up and try this functionality immediately.