PHPackages                             graftechnology/pdfshift - 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. graftechnology/pdfshift

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

graftechnology/pdfshift
=======================

Easily implement PDFShift (https://pdfshift.io/) into Craft CMS.

2.0.1(1mo ago)1188[3 issues](https://github.com/jacobgraf/pdfshift/issues)proprietaryPHPPHP ^8.0.2

Since Jul 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jacobgraf/pdfshift)[ Packagist](https://packagist.org/packages/graftechnology/pdfshift)[ RSS](/packages/graftechnology-pdfshift/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (0)

PDFShift plugin for Craft CMS
=============================

[](#pdfshift-plugin-for-craft-cms)

Easily implement PDFShift () into Craft CMS.

[![Screenshot](resources/img/plugin-logo.png)](resources/img/plugin-logo.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0 or 5.0, and PHP 8.0.2 or later.

For Craft CMS 3, use version 1.x of this plugin.

Upgrading from 1.x
------------------

[](#upgrading-from-1x)

Template code is unchanged: `craft.pdfShift.link()` and `craft.pdfShift.download()` work exactly as before, and your existing API Key setting carries over automatically.

Two things to be aware of:

- The plugin now uses the PDFShift v3 API. `source`, `filename`, `format`, and `sandbox` behave the same; if you pass other conversion options, check their names against the [v3 API reference](https://docs.pdfshift.io/api-reference/convert-to-pdf).
- The API Key setting now accepts an environment variable reference (e.g. `$PDFSHIFT_API_KEY`), which is the recommended way to store it.

Installation
------------

[](#installation)

To install the plugin, follow these instructions (alternatively, install from the Craft Plugin Store).

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require graftechnology/pdfshift

    ```
3. In the Control Panel, go to Settings → Plugins and click the "Install" button for PDFShift.
4. Go to Settings → Plugins → PDFShift → Settings and enter your PDFShift API Key. The setting accepts an environment variable reference (e.g. `$PDFSHIFT_API_KEY`), which keeps the key out of project config.

**Note:** While testing, you can pass `sandbox: true` in your conversion options for free, watermarked conversions that don't count against your plan.

Read more here

PDFShift Overview
-----------------

[](#pdfshift-overview)

Stop wasting time implementing and maintaining a third-party software/library.

With PDFShift, rely on an up-to-date, high-fidelity conversion API with no maintenance costs.

Using PDFShift
--------------

[](#using-pdfshift)

##### Return URL to PDF Document

[](#return-url-to-pdf-document)

Returns a temporary URL to the converted PDF (hosted by PDFShift for two days):

```
{{ craft.pdfShift.link({
    source: 'https://www.google.com/',
    filename: 'google.pdf',
    format: 'Letter',
    sandbox: true
}) }}
```

##### Download PDF Document

[](#download-pdf-document)

Streams the converted PDF to the browser as a download:

```
{{ craft.pdfShift.download({
    source: 'https://www.google.com/',
    filename: 'google.pdf',
    format: 'Letter',
    sandbox: true
}) }}
```

### Options

[](#options)

`source` is the only required option. Everything else is optional.

`filename` is optional and defaults to `document.pdf`.

All other options are passed straight through to the PDFShift v3 API. The full list is here:

---

Brought to you by [Graf Technology, LLC](https://graftechnology.com/)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance73

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

Established project with proven stability

 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 ~366 days

Recently: every ~632 days

Total

8

Last Release

34d ago

Major Versions

1.1.1 → 2.0.02026-07-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/183134720?v=4)[Graf Technology](/maintainers/graftechnology)[@graftechnology](https://github.com/graftechnology)

---

Top Contributors

[![jacobgraf](https://avatars.githubusercontent.com/u/146333?v=4)](https://github.com/jacobgraf "jacobgraf (30 commits)")

---

Tags

pdfcmsCraftcraftcmscraft-pluginpdfshift

### Embed Badge

![Health badge](/badges/graftechnology-pdfshift/health.svg)

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

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16172.7k7](/packages/verbb-icon-picker)[enupal/snapshot

PDF or Image generation from a Url or HTML page

1138.0k](/packages/enupal-snapshot)

PHPackages © 2026

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