Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Typdf is a document generation engine for Drupal that uses the Rust-based Typst compiler for fast and efficient PDF creation. It allows users to generate documents from markdown or automatically convert content from CKEditor, supporting integrations with Webforms and Views Bulk Operations. The module also offers secure media handling and allows for template management within Drupal's administration interface.

Typdf is a high-performance document engine for Drupal built on the Rust-based Typst open-source compiler. It offers a fast, memory-efficient way to generate complex, multi-page documents without putting heavy strain on your web server.

A Different Approach to PDF Generation

The Drupal community has long relied on excellent tools like Entity Print, Dompdf, and Wkhtmltopdf. We want to thank the developers of those projects for building the foundation that so many of us have used for years.

Typdf exists as an alternative for those who need a "markdown-first" workflow. Rather than converting heavy HTML and CSS—which can sometimes be unpredictable for print—Typdf uses a native typesetting system. This results in significantly faster generation times and lower RAM usage, making it a great fit for high-traffic or enterprise environments.

Drupal Coding Standards

  • PHPCS - Passes
  • PHPSTAN Level 8 - Passes

Key Features

  • Performance: Documents compile in milliseconds using the Rust-based engine, preventing server timeouts during heavy loads.
  • Editor Friendly: You don’t need to know Typst syntax. A built-in filter automatically translates standard CKEditor content (tables, lists, styles) into clean Typst markdown.
  • Secure Media Handling: Securely fetches external images with SSRF protection and integrates directly with the Drupal Media Library.
  • Workflow Integration: Includes support for Webforms, Views Bulk Operations (VBO), and ECA, allowing you to automate document generation across your site.
  • Administration: Manage templates directly within the Drupal UI without needing to deploy physical files.

Efficiency and Caching

Typdf is designed for scale. By saving generated PDFs as static files, subsequent downloads bypass PHP entirely, serving documents in under 5ms. It also provides granular control over CDN headers (like Varnish or Cloudflare) and ensures private files remain secure with strict local caching rules.

* Gemini Pro 3.1 Preview Model was used to help in development of this module.

Activity

Tracked releases
13
Tracked since
May 2026
Latest release
1 week ago
Releases (12 mo)
13 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.2.0-alpha7 Pre-release Aug 15, 2026
1.2.0-alpha6 Pre-release Jul 27, 2026
1.2.0-alpha5 Pre-release Jul 23, 2026
1.2.0-alpha4 Pre-release Jul 22, 2026
1.2.0-alpha2 Pre-release Jul 17, 2026
1.2.0-alpha1 Pre-release Jun 23, 2026
1.1.0-alpha7 Pre-release May 26, 2026
1.1.0-alpha3 Pre-release May 21, 2026
1.1.0-alpha2 Pre-release May 21, 2026
1.1.0-alpha1 Pre-release May 16, 2026
1.1.x-dev Dev May 16, 2026
1.0.0-alpha2 Pre-release May 12, 2026
1.0.x-dev Dev May 12, 2026