Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

PDF Preview Image

Security covered Under active development 98 sites

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".
Drupal 10–11

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.

Activity

Tracked releases
3
Tracked since
Sep 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0 Stable 10–11 Mar 17, 2025
2.1.0 Stable 8–11 Mar 12, 2025
2.0.0 Stable 8–10 Sep 25, 2024