PHPackages                             enupal/snapshot - 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. enupal/snapshot

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

enupal/snapshot
===============

PDF or Image generation from a Url or HTML page

3.0.0(2y ago)1137.9k↓25%3[14 issues](https://github.com/enupal/snapshot/issues)PHP

Since Jan 25Pushed 2y ago4 watchersCompare

[ Source](https://github.com/enupal/snapshot)[ Packagist](https://packagist.org/packages/enupal/snapshot)[ RSS](/packages/enupal-snapshot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (33)Used By (0)

[![](https://camo.githubusercontent.com/db61aeaac2cca8ac5640a7a7f8c59ef0219af1473011b885644de85db5c59914/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/db61aeaac2cca8ac5640a7a7f8c59ef0219af1473011b885644de85db5c59914/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572) [![](https://camo.githubusercontent.com/7cd6b3a4cf5e83e3d9dabbc08b64862ecc462570d8ac55c90ba31ce50b4e3795/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/7cd6b3a4cf5e83e3d9dabbc08b64862ecc462570d8ac55c90ba31ce50b4e3795/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f636f7665726167652e706e673f623d6d6173746572) [![](https://camo.githubusercontent.com/0ac1ff84e61f869ca50b2b5ce8997ca3cab9cd1dc820b25834fc4afee084accc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://camo.githubusercontent.com/0ac1ff84e61f869ca50b2b5ce8997ca3cab9cd1dc820b25834fc4afee084accc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f6275696c642e706e673f623d6d6173746572) [![](https://camo.githubusercontent.com/bcdce157c45443f67d9696e8f9419cbf43d5f88365063bd542f9ec30dae73ce9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://camo.githubusercontent.com/bcdce157c45443f67d9696e8f9419cbf43d5f88365063bd542f9ec30dae73ce9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e7570616c2f736e617073686f742f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)

 [ ![Enupal Snapshot](https://camo.githubusercontent.com/3685e0f6c4ea0f0c28d7948b7e674677f1bea0331c448b1439f2d20448428cfd/68747470733a2f2f656e7570616c2e636f6d2f6173736574732f646f63732f736e617073686f742d69636f6e2e737667)](https://docs.enupal.com/enupal-snapshot/)

Enupal Snapshot Plugin for Craft CMS
====================================

[](#enupal-snapshot-plugin-for-craft-cms)

PDF or Image generation from a URL or HTML page easily. It uses the excellent webkit-based wkhtmltopdf and wkhtmltoimage available on OSX, Linux &amp; windows.

Features
--------

[](#features)

### Store your PDF or Image files in Assets

[](#store-your-pdf-or-image-files-in-assets)

Enupal Snapshot allows set a global asset and sub-path (twig code allowed) to store your files. Override the asset and sub-path before generating your files in your templates, more info [here](https://enupal.com/craft-plugins/enupal-snapshot/docs/advanced/override-upload-asset).

### Display the Pdf in browser from Html

[](#display-the-pdf-in-browser-from-html)

```
{%  set settings = {
        filename: 'my-first.pdf'
    }
%}

{{ craft.enupalsnapshot.displayHtml("Hello world!", settings) }}
```

### Display the Pdf in browser from template

[](#display-the-pdf-in-browser-from-template)

```
{%  set settings = {
        filename: 'my-first.pdf',
        variables: {
            foo: 'barr'
        }
    }
%}

{{ craft.enupalsnapshot.displayTemplate("pdf/examples/summary", settings) }}
```

### Download url of the Pdf from Html

[](#download-url-of-the-pdf-from-html)

```
{%  set settings = {
        filename: 'my-first.pdf',
        inline: false,
    }
%}

{% set url = craft.enupalsnapshot.displayHtml("Hello world!", settings) %}

 Download Pdf
```

### Download url as an Image

[](#download-url-as-an-image)

```
{%  set settings = {
        filename: 'my-first-image.png',
        asImage: true
    }
%}

{% set url = craft.enupalsnapshot.displayHtml("Hello world!", settings) %}

 Download Image
```

### Display the Pdf in browser from Urls

[](#display-the-pdf-in-browser-from-urls)

```
{% set urls = {0: 'https://www.google.com', 1:'http://enupal.com'} %}

{%  set settings = {
        filename: 'my-first.pdf'
    }
%}

{{ craft.enupalsnapshot.displayUrl(urls, settings) }}
```

### Add cliOptions

[](#add-clioptions)

All available options [here](https://wkhtmltopdf.org/usage/wkhtmltopdf.txt):

```
{%  set settings = {
        filename: 'my-first.pdf',
        cliOptions: {
            'cover': 'Hello world from Enupal Snapshot',
            'header-font-size': '36',
            'footer-right': null,
            'orientation': 'Portrait',
            'page-size': 'A4'
        }
    }
%}

{{ craft.enupalsnapshot.displayHtml("Hello world!", settings) }}
```

Documentation
-------------

[](#documentation)

Enupal Snapshot Support
-----------------------

[](#enupal-snapshot-support)

- Send us a note at:
- Create an [issue](https://github.com/enupal/snapshot/issues) on Github

---

Brought to you by [enupal](https://enupal.com)

 [ ![Enupal Snapshot](https://camo.githubusercontent.com/3a24dcd66fe2c216c4e850efeb37e8235409244d39aaaffd79729685daa7f67a/68747470733a2f2f656e7570616c2e636f6d2f6173736574732f646f63732f656e7570616c2d6c6f676f2e706e67)](https://enupal.com/en)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 99.3% 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 ~94 days

Recently: every ~167 days

Total

25

Last Release

778d ago

Major Versions

1.2.8 → 2.0.02022-05-21

1.2.9 → 2.0.12022-06-03

1.2.10 → 3.0.02024-04-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/2157c02413c96609bdc0d87186c4887fa1d06636d599c1a355dd53acac91026f?d=identicon)[enupal](/maintainers/enupal)

---

Top Contributors

[![andrelopez](https://avatars.githubusercontent.com/u/875476?v=4)](https://github.com/andrelopez "andrelopez (147 commits)")[![notnek](https://avatars.githubusercontent.com/u/114763?v=4)](https://github.com/notnek "notnek (1 commits)")

---

Tags

craft-plugincraftcmsimage-generationpdfpdf-generationpdfsnapshotimagecmsCraftcraftcmscraft-plugin

### Embed Badge

![Health badge](/badges/enupal-snapshot/health.svg)

```
[![Health](https://phpackages.com/badges/enupal-snapshot/health.svg)](https://phpackages.com/packages/enupal-snapshot)
```

###  Alternatives

[spacecatninja/imager-x

Ninja powered image transforms.

29390.0k23](/packages/spacecatninja-imager-x)

PHPackages © 2026

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