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).

entity_pdf

454 sites Security covered
View on drupal.org

Entity PDF can create a PDF from any entity based on any View mode.

URL to use: /entity_pdf/{entity_type}/{entity}/{view_mode}

Example: /entity_pdf/node/5/pdf

By default, it uses mpdf8 PHP library, but custom modules could provide new rendering engines with EntityPdfRenderingEngine plugin.

Install with composer only!

The module provides a default htmlpdf.html.twig file, and its settings allows to define a relative path to a custom version of it.

Thus, you can control the entire HTML structure that gets converted to PDF.

No CSS and/or JS from Drupal will get added, so you need to add everything by hand in the twig file.

All fields will get a view mode template suggestion added so you can theme fields for your PDF view mode.
(Once https://www.drupal.org/node/2270883 is in core this should all work out-of-the-box in Drupal).

The module also provides an "Entity Pdf Download" action that allows to generate & download PDFs as operation on multiple nodes (i.e. via Views Node operations bulk form).

If you use Display Suite, an extra (ds_)field will become available (for nodes only) on all view modes that outputs a link to your PDF view. (view mode for the generation can be selected).

There is access permission to view PDF's: don't forget to check it in your permissions.

If you need more access control and checks create a ticket in the issues queue.

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.1.4 Stable Jan 21, 2025