Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

This module reduces the size of uploaded PDF files, to reduce the download time (UX) and the disk and network usage (sustainability). It's especially useful for mobile devices with low bandwidth.
This also improves the perceived performance of users' devices, thus reduces the incentive to change one's device, which is usually considered as the biggest contribution to the ecological footprint of the web.

It's one of the recommendations of the french General Ecodesign Guidelines for Digital Services (RGESN 5.7).
See also in french: https://www.greenit.fr/2013/03/06/eco-conception-web-optimiser-les-pdf/

Features

When a PDF is uploaded to a file field (also works in rich text editor through the Editor file module), this module uses a Ghostscript PHP library to reduce the PDF file to the "ebook" quality level, which is usually good enough.
In some cases, the compression fails or the resulting file is bigger. If so, it's not kept and the original file remains.
Otherwise, a message is shown to the uploading user to inform that the file has been reduced. In that case the original bigger file is not kept on the server, it's replaced with the compressed one.

Post-Installation

No configuration needed. All file fields will automatically get this feature as soon as you enable the module.

Additional Requirements

Be aware that Ghostscript has to be executable on your server for this to work.

Activity

Total releases
2
First release
Jan 2025
Latest release
2 weeks ago
Release cadence
440 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Apr 2, 2026
1.0.0-alpha1 Pre-release Jan 17, 2025