Drupal is a registered trademark of Dries Buytaert
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)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

pdf_preview_image

115 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