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

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

gdmedia/silverstripe-dompdf
===========================

SilverStripe PDF Generation via DOMPDF Library

0.0.1(10y ago)18.2k8PHP

Since Nov 3Pushed 7y ago3 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3839d ago

### Community

Maintainers

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

---

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)")[![gurudigital](https://avatars.githubusercontent.com/u/8206306?v=4)](https://github.com/gurudigital "gurudigital (1 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)[consoletvs/invoices

Generate PDF invoices for your customers in laravel

455275.5k](/packages/consoletvs-invoices)[nucleos/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

54882.8k1](/packages/nucleos-dompdf-bundle)[dino/dompdf-module

A Zend Framework 2 module for incorporating DOMPDF support.

61465.1k8](/packages/dino-dompdf-module)[omaralalwi/gpdf

Custom PDF wrapper supporting Arabic language

15411.6k](/packages/omaralalwi-gpdf)[phpnt/yii2-export

Yii2 It saves data in xls, csv, word, html, pdf files.

158.9k](/packages/phpnt-yii2-export)

PHPackages © 2026

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