PHPackages                             violet88/silverstripe-dompdf - 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. violet88/silverstripe-dompdf

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

violet88/silverstripe-dompdf
============================

SilverStripe PDF Generation via DOMPDF Library

1742PHP

Since Feb 20Pushed 2y agoCompare

[ Source](https://github.com/Violet88github/silverstripe-dompdf)[ Packagist](https://packagist.org/packages/violet88/silverstripe-dompdf)[ RSS](/packages/violet88-silverstripe-dompdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDF Generation via DOMPDF Library
=================================

[](#pdf-generation-via-dompdf-library)

This is a fork of  for use with Composer.

Maintainer: Jeremy Shipman ()

Makes use of: Dompdf websites: ,

Input:

- HTML string (which could be rendered template)
- HTML File

Output

- PDF File location
- SS File
- PDF binary stream to browser

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

[](#installation)

> \###Composer

- On the command line, cd into your sites root folder
- Run `composer require gdmedia/silverstripe-dompdf`
- Run dev/build?flush=all in your browser

> \###Manually

- Download the module from
- Extract the files into your silverstripe root folder
- Run dev/build?flush=all in your browser

Example usage
-------------

[](#example-usage)

```
	$pdf = new SS_DOMPDF();
	$pdf->setHTML($mydataobject->renderWith('MyTemplate'));
	$pdf->render();
	$pdf->toFile('mypdf.pdf');
```

Debugging
---------

[](#debugging)

The $pdf-&gt;streamdebug(); function is useful for quickly viewing pdfs, particularly if your browser supports displaying pdfs, rather than downloading.

You can check your html before it is converted like this:

```
	echo $mydataobject->renderWith('MyTemplate');die();
```

Useful Tips
-----------

[](#useful-tips)

- Use tables for layout if you get errors from floating divs.
- See the [official dompdf website](http://pxd.me/dompdf/www/) for more info

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/e81407c3850e235ac246bc79116c74cac965fb3c8c146404b40ea660c88333eb?d=identicon)[PixNyb](/maintainers/PixNyb)

---

Top Contributors

[![jedateach](https://avatars.githubusercontent.com/u/1356335?v=4)](https://github.com/jedateach "jedateach (11 commits)")[![cjsewell](https://avatars.githubusercontent.com/u/1856199?v=4)](https://github.com/cjsewell "cjsewell (8 commits)")[![robingram](https://avatars.githubusercontent.com/u/118558?v=4)](https://github.com/robingram "robingram (5 commits)")[![PixNyb](https://avatars.githubusercontent.com/u/40770831?v=4)](https://github.com/PixNyb "PixNyb (3 commits)")[![gurudigital](https://avatars.githubusercontent.com/u/8206306?v=4)](https://github.com/gurudigital "gurudigital (1 commits)")[![JanSneeuw](https://avatars.githubusercontent.com/u/48092471?v=4)](https://github.com/JanSneeuw "JanSneeuw (1 commits)")[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (1 commits)")

### Embed Badge

![Health badge](/badges/violet88-silverstripe-dompdf/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[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.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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