This module generates a thumbnail image from a PDF file attached to a media entity. It replaces the default thumbnail with an image representation of the PDF, making it easier to preview PDF content within your media library.
The module provides an image field formatter for the thumbnail field of Media entities. The default thumbnail image will be replaced by an image generated from a pdf file referenced in any file field of the Media entity.
Prerequisite :
Imagick PHP extension (at least 6.3.7)
spatie/pdf-to-image library: composer require spatie/pdf-to-image.
Instructions :
Install as you would normally install a contributed Drupal module and enabled it.
Install spatie/pdf-to-image: composer require spatie/pdf-to-image
Usage :
See documentation for all details.
Versions details :
7.0.x
spatie/pdf-to-image 3.x
PHP >=8.2
6.1.x
spatie/pdf-to-image 2.1.x
PHP >=8.1
6.0.x => Deprecated (no more updates)
Ask your assistant about Media PDF Thumbnail
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
- media Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 6.0.0-rc1 | Pre-release | 9–10 | PHP >=7.4 | Jul 28, 2023 | |
| 6.0.0-beta3 | Pre-release | 9–10 | PHP >=7.4 | May 7, 2023 | |
| 6.0.0-beta2 | Pre-release | 9–10 | PHP >=7.4 | Apr 2, 2023 | |
| 6.0.0-beta1 | Pre-release | 9–10 | PHP >=7.4 | Mar 11, 2023 | |
| 8.x-5.5 | Stable | 9–10 | Mar 11, 2023 |