Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: X-Frame-Options Allow-From webvisor.com 2.0.2 Minor update available for module xframe_allow_webvisor (2.0.2). Release: Swagger UI Info 2.0.2 Minor update available for module swagger_ui_info (2.0.2). Release: Contact Mail 2.0.4 Minor update available for module contact_mail (2.0.4). Release: BootBase 2.0.3 Minor update available for theme bootbase (2.0.3). Release: Synapse Theme 2.0.1 Minor update available for module syntheme (2.0.1). Release: synship 2.0.2 Minor update available for module synship (2.0.2). Release: Commerce Import Products & Variations 2.0.2 Minor update available for module commerce_import (2.0.2). Release: Synsearch 2.0.2 Minor update available for module synsearch (2.0.2). Usage Milestone: Term CSV Export Import Module term_csv_export_import crossed 1,000 active installs. Module Revived: Year/Month Widget 1.1.3 Module year_month_widget updated after 9 months of inactivity (1.1.3).

PDF to ImageField

785 sites Security covered

Part of the PDF ecosystem · 15 projects

View on drupal.org

This module automatically converts uploaded PDF files into images, allowing you to create preview thumbnails of the first page or generate a gallery of images from every page. Generated images are stored in a separate image field linked to the uploaded PDF.

The PDF To ImageField module provides automatic conversion of uploaded PDF files to images.
It can be used either to create a snapshot of the front page to use as a preview thumbnail, or to generate a gallery of images from each page in the document.

The module is implemented as an additional widget for File Field where PDFs are uploaded to. It places generated images into a Image Field on the same content type.

Requirements:

  • PHP version >= 8.3
  • Recommended Drupal version >= 10.3

Installation (1.0.x)

Just composer install and configure the file widget.

Configuration

  • First, add an imagefield on your chosen content type. This is where the generated images wil be stored.
  • Set the allowed fields to 1 if you just want a cover page, or 'unlimited' if you want all pages to be generated.
  • Next add a filefield to your chosen content type and choose 'PDF to Image' as the widget.
    • D10/D11 - This filefield should be configured to accept PDF file types (required) + you can add the same extensions as for the target field.
  • When configuring this field, you will be required to link the uploaded file field with the target image field.
  • You can add image style handling to the imagefield rendering as normal to adjust the size of the results and how they display on the page.

Processing

Processing of PDF may take some time.
Larger documents use the 'batch' process to generate each page.

Comparison:

  • PDF Preview now offers similar functionality. It only does the first page, and operates as a 'formatter' for the uploaded file rather than treating the generated image as an attached file.
  • See also PDF Preview Image to prepare a preview image from PDF

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Apr 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.1-rc2 Pre-release 10–11 May 23, 2026
1.0.1-rc1 Pre-release 10–11 Apr 30, 2026