PHPackages                             amici/craft-super-pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. amici/craft-super-pdf

ActiveCraft-plugin[PDF &amp; Document Generation](/categories/documents)

amici/craft-super-pdf
=====================

Create PDF files from html

5.0.4(4mo ago)512.8k[6 issues](https://github.com/amici-infotech/craft-super-pdf/issues)proprietaryPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI failing

Since Mar 7Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/amici-infotech/craft-super-pdf)[ Packagist](https://packagist.org/packages/amici/craft-super-pdf)[ RSS](/packages/amici-craft-super-pdf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (39)Used By (0)

Super PDF Plugin for Craft CMS 3
================================

[](#super-pdf-plugin-for-craft-cms-3)

Creating PDF is easy and fast now with Super PDF. Plug, Twig and play. Super PDF is backed with DomPDF library and gives you full power to covert your twig templates into PDF. You can pass external CSS and HTML 4.0 attributes working with it. All the functionality DomPDF gives can be accessible easily in Super PDF.

### Features

[](#features)

- Handles most CSS 2.1 and a few CSS3 properties, including @import, @media &amp; @page rules
- Supports most presentational HTML 4.0 attributes
- Supports external stylesheets, either local or through http/ftp (via fopen-wrappers)
- Supports complex tables, including row &amp; column spans, separate &amp; collapsed border models, individual cell styling
- Image support (gif, png (8, 24 and 32 bit with alpha channel), bmp &amp; jpeg)
- No dependencies on external PDF libraries, thanks to the R&amp;OS PDF class
- Inline PHP support
- Basic SVG support

### Requirements

[](#requirements)

- PHP version 7.2.5 or higher
- Craft CMS 3.6.0 or higher
- DOM extension
- MBString extension
- php-font-lib
- php-svg-lib

Note that some required dependencies may have further dependencies (notably php-svg-lib requires sabberworm/php-css-parser).

---

### Installation

[](#installation)

Open your terminal and go to your Craft project:

```
cd /path/to/project
```

Run this command to load the plugin:

```
composer require amici/craft-super-pdf
```

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

---

### Usage

[](#usage)

You can create PDF from HTML using this code:

```
{% set html %}
    This is a basic example
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.
{% endset %}

{% set settings = {
    filename: "My_PDF",
} %}

{{ craft.superpdf.html(html, settings) }}
```

You can create PDF from template using this code:

```
{% set settings = {
    filename: "My_PDF",
} %}

{% set vars = {
    entry : entry,
    data : data
} %}

{{ craft.superpdf.template("template/_pdf_template", settings, vars) }}
```

You can also create PDF and instead of preview it, show a URL to visit / download:

```
{% set settings = {
    filename: "My_PDF",
    type: 'object',
} %}

{% set vars = {
    entry : entry,
    data : data
} %}

{% set object = craft.superpdf.template("template/_pdf_template", settings, vars) %}

// Default echo object will return URL
{{ object }}

{{ object.url }}
{{ object.getUrl() }}

{{ object.path }}
{{ object.getPath() }}

{{ object.filename }}
{{ object.getFilename() }}

{{ object.kind }}
{{ object.size }}
{{ object.dateModified|date("m/d/Y H:i:s") }}

// Returns craft assets element. Only if PDF is stored in craft assets volumes instead of storage folder.
{{ object.asset }}
{{ object.getAsset() }}
```

### Documentation

[](#documentation)

Visit the [Super PDF page](https://docs.amiciinfotech.com/craft-cms/super-pdf) for all documentation, guides, pricing and developer resources.

### Support

[](#support)

Get in touch with us via the [Amici Infotech Support](https://amiciinfotech.com/contact) or by [creating a Github issue](https://github.com/amici-infotech/craft-super-pdf/issues)

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance54

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Recently: every ~5 days

Total

36

Last Release

145d ago

Major Versions

1.0.8.6 → 2.0.2.52023-05-19

1.1.0 → 5.0.02024-03-27

1.1.1 → 5.0.22025-12-03

1.1.2 → 5.0.32025-12-06

1.1.3 → 5.0.42025-12-24

PHP version history (4 changes)2.0.0PHP ^8.0.2

5.0.0PHP ^8.1 || ^8.2

5.0.2PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

2.0.2.7PHP ^8.0.2 || ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7ce33eed8b6049a844edbc265f52eea4469fcd9fc40e2a318b3a3e6437ae2a9?d=identicon)[amici-infotech](/maintainers/amici-infotech)

---

Top Contributors

[![amici-infotech](https://avatars.githubusercontent.com/u/20450552?v=4)](https://github.com/amici-infotech "amici-infotech (37 commits)")

---

Tags

pdfcmsdompdfCraftcraftcmscraft-plugincreate-pdfamicitwig-to-pdf

### Embed Badge

![Health badge](/badges/amici-craft-super-pdf/health.svg)

```
[![Health](https://phpackages.com/badges/amici-craft-super-pdf/health.svg)](https://phpackages.com/packages/amici-craft-super-pdf)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[enupal/snapshot

PDF or Image generation from a Url or HTML page

1137.9k](/packages/enupal-snapshot)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
