PHPackages                             dnadesign/silverstripe-generatepdf - 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. dnadesign/silverstripe-generatepdf

ActiveSilverstripe-module[PDF &amp; Document Generation](/categories/documents)

dnadesign/silverstripe-generatepdf
==================================

This module generates a PDF version of a page

21112PHP

Since Jul 28Pushed 10y ago18 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Silverstripe GeneratePDF
========================

[](#silverstripe-generatepdf)

Introduction
------------

[](#introduction)

This extension allow for a PDF version of any page to be created and served either via a direct link to the generated file or via a method that triggers the download of the generated pdf.

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

[](#requirements)

- Silverstripe 3.1
- [WKHTMLTOPDF library](http://wkhtmltopdf.org/)

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

[](#installation)

```
composer require "dnadesign/silverstripe-generatepdf" "dev-master"

```

Extend any page type with the GeneratePDF extension as well as the page type controller with GeneratePDF\_Controller extension. This can be done via the SilverStripe `YAML` config API

**mysite/\_config/app.yml**

```
Page:
  extensions:
    - GeneratePDF

Page_Controller:
  extensions:
    - GeneratePDF_Controller

```

**Define WKHTMLTOPDF path**To use the library locally, you can define the path in the yaml file

```
Page:
	wkhtmltopdf_binary: /usr/local/bin/wkhtmltopdf

```

Configuration
-------------

[](#configuration)

The `AutoGeneratePDF` extension refreshes the generated pdf upon publish. Everytime you republish a page with the extension GeneratePDF, the previous version of the pdf is deleted and a new one is recreated, keeping the generated file always up-to-date with the live version.

```
Page:
  extensions:
    - AutoGeneratePDF

```

The `PublishRefreshPDF` allow for subpage to publish automatically the parent page in order to regenerate the pdf. It can also be used with silvertsripe-elemental to trigger the page publish when a widget (element) is published.

```
SubPage:
  extensions:
    - PublishRefreshPDF

 BaseElement:
  extensions:
    - PublishRefreshPDF

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/efd88fa106982bcf2e3cd689e6a37d352c54308d14dedeac4ac477a47a432363?d=identicon)[DNADesign](/maintainers/DNADesign)

![](https://www.gravatar.com/avatar/e55a584eaac053bdbe811b1039dd00ac30da0c7978a5efbb6082504c610678d2?d=identicon)[alex-dna](/maintainers/alex-dna)

---

Top Contributors

[![alex-dna](https://avatars.githubusercontent.com/u/6982515?v=4)](https://github.com/alex-dna "alex-dna (10 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (4 commits)")

### Embed Badge

![Health badge](/badges/dnadesign-silverstripe-generatepdf/health.svg)

```
[![Health](https://phpackages.com/badges/dnadesign-silverstripe-generatepdf/health.svg)](https://phpackages.com/packages/dnadesign-silverstripe-generatepdf)
```

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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