Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Entity PDF allows you to generate PDF documents from any Drupal entity, such as nodes, using a specified view mode. It provides a default HTML structure that you can customize to control the PDF's appearance and offers a bulk download action for multiple entities.

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
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.1.4 Stable Jan 21, 2025