Plugin screenshot thumbnail 1/3
Plugin screenshot thumbnail 2/3
Plugin screenshot thumbnail 3/3

Super PDF Plugin for Craft CMS 4 / 5

Create PDF files from HTML or Twig templates with DomPDF. Twig-first API, storage/volume persistence, queue support, lifecycle events, and optional signed download URLs.

Requirements

  • PHP 8.1 or higher
  • Craft CMS 4.0 or 5.0
  • DOM and MBString extensions (GD recommended)

Features

  • Generate PDFs from HTML or Twig templates
  • Output modes: render, download, object, string, base64
  • Save to Craft storage or an asset volume
  • Optional signed, expiring storage download links
  • Queue / async generation
  • Email attachment helper
  • Console super-pdf/generate command
  • Header & footer HTML or Twig partials
  • Page total placeholder (SUPER_PDF_TOTAL_PAGES / {PAGE_COUNT})
  • Lifecycle events (beforeRender, afterRender, beforeSave, afterSave)
  • Encryption and permission flags
  • Entry “Download PDF” CP action
  • DomPDF 3 with configurable font/temp directories

Installation

composer require amici/craft-super-pdf

In the Control Panel, go to Settings → Plugins and click Install for Super PDF.

Quick usage

{% set html %}
    <h1>Hello</h1>
{% endset %}

{{ craft.superpdf.html(html, { filename: "My_PDF" }) }}
{% set object = craft.superpdf.template("_pdf/invoice", {
    filename: "invoice",
    type: "object"
}, { entry: entry }) %}

{{ object.url }}
use amici\SuperPdf\Plugin as SuperPdf;

SuperPdf::$plugin->getPdf()->fromTemplate('_pdf/invoice', [
    'filename' => 'invoice',
    'type' => 'object',
], ['entry' => $entry]);
php craft super-pdf/generate --template=_pdf/invoice --filename=smoke --type=object

Documentation

Support

Amici Infotech Support or GitHub issues

Standard

Plus $19/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
397
Version
5.1.0
License
Craft
Compatibility
Craft 3, Craft 4, Craft 5
Last release
August 3, 2026