Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

PDF Preview Image

97 sites Security covered Drupal 10–11 PDF ecosystem
View on drupal.org

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

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.

Activity

Tracked releases
2
Tracked since
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
3.0.0 Stable 10–11 Mar 17, 2025
2.1.0 Stable 8–11 Mar 12, 2025