Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

pdf_preview_image

104 sites Security covered
View on drupal.org

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

Activity

Total releases
2
First release
Mar 2025
Latest release
1 year ago
Release cadence
5 days
Stability
100% stable

Releases

Version Type Release date
3.0.0 Stable Mar 17, 2025
2.1.0 Stable Mar 12, 2025