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

ActiveSilverstripe-vendormodule

3dgoo/silverstripe-dompdf
=========================

SilverStripe PDF Generation via DOMPDF Library

1.0.0(3y ago)023

Since Nov 3Pushed 2mo agoCompare

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

READMEChangelogDependencies (2)Versions (10)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

39

—

LowBetter than 86% of packages

Maintenance56

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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

Every ~629 days

Recently: every ~270 days

Total

7

Last Release

77d ago

Major Versions

0.0.1 → 1.0.02023-03-19

1.x-dev → 2.x-dev2023-03-19

0.1.0 → 6.x-dev2026-03-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/d291c7429ff8684f948ffb3180ae3d1e78aa53bb6c79bd9d7afb57752e441486?d=identicon)[3Dgoo](/maintainers/3Dgoo)

---

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/3dgoo-silverstripe-dompdf/health.svg)

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[craftcms/commerce

Craft Commerce

243416.9k153](/packages/craftcms-commerce)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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