Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Entity PDF

453 sites Security covered Drupal 9–11 Entity ecosystem
View on drupal.org

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.

Depends on

Dependencies of the latest stable release

  • node Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Oct 2024
Latest release
6 days ago
Releases (12 mo)
1 ▼ from 6
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.1.5 Stable 9–11 Aug 25, 2026
2.1.4 Stable 9–11 Jan 21, 2025
2.1.3 Stable 9–10 Oct 17, 2024
2.1.2 Stable 9–10 Oct 10, 2024
2.x-dev Dev 9–11 Oct 10, 2024
2.1.1 Stable 9–10 Oct 8, 2024
2.1.0 Stable 9–10 Oct 8, 2024