Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

PDFPreview

Security covered Under active development 3,119 sites

This module creates a thumbnail image of the first page of a PDF document using ImageMagick. It provides a formatter for file fields to display these thumbnails.

Overview

This module uses ImageMagick to generate a thumbnail image of the first page in a PDF document. There is a PDFPreview formatter available on file fields to display the thumbnail.

Dependencies

ImageMagick module and related binaries must be installed to use this module. See the project page for more details. ImageMagick does not have to be set as the default image toolkit.

NOTE: Recent versions of ImageMagick must be configured to allow reading PDF files. You'll need to give "read" permission to the PDF pattern in /etc/ImageMagick-7/policy.xml as below:

<policy domain="coder" rights="read" pattern="PDF" />

Alternative modules

The PDF to ImageField module saves thumbnails to a separate image field.

Drupal 10–11

Ask your assistant about PDFPreview

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.2 Stable 10–11 Jun 6, 2024
8.x-1.1 Stable 9–10 Feb 27, 2023