Part of the PDF ecosystem · 19 projects
This module automatically generates an image preview from an uploaded PDF file. The generated image is then saved to a separate image field, providing a visual representation of the PDF content.
PDF Preview Image module provides an image preview from a pdf file and save it on a field image type. It is a light version of Pdf to image field module.
Requirements
- Package 'Convert a pdf to an image' which can be installed via composer:
$ composer require spatie/pdf-to-image. - Imagick and Ghostscript installed on server.
Install
- Install package 'Convert a pdf to an image' via $ composer require spatie/pdf-to-image.
- Enable the module admin/modules.
Using the module
- Go on a content type, create a file type field and set up on "Allowed file extensions" the pdf extension.
- On the bottom of file field settings will appear "Pdf preview autogeneration"; Check the box.
- There is an option to set up the image field where should be stored image from pdf.
- If there isn't an image field created in content type, go ahead create one, and then set up on "Pdf Preview Autogeneration".
Ask your assistant about PDF Preview Image
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- image Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the PDF ecosystem
Most installed first