Download the PHP package dompdf/dompdf without Composer

On this page you can find all versions of the php package dompdf/dompdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?
Rate from 1 - 5
Rated 4.00 based on 3 reviews

All versions of dompdf with dependencies

Informations about the package dompdf


Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Dompdf is an HTML to PDF converter

At its heart, dompdf is (mostly) a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes.

This document applies to the latest stable code which may not reflect the current release. For released code please navigate to the appropriate tag.

Check out the demo and ask any question on StackOverflow or on the Google Groups.

Follow us on Twitter.



Note that some required dependencies may have further dependencies (notably php-svg-lib requires sabberworm/php-css-parser).


Visit the wiki for more information:

About Fonts & Character Encoding

PDF documents internally support the following fonts: Helvetica, Times-Roman, Courier, Zapf-Dingbats, & Symbol. These fonts only support Windows ANSI encoding. In order for a PDF to display characters that are not available in Windows ANSI, you must supply an external font. Dompdf will embed any referenced font in the PDF so long as it has been pre-loaded or is accessible to dompdf and reference in CSS @font-face rules. See the font overview for more information on how to use fonts.

The DejaVu TrueType fonts have been pre-installed to give dompdf decent Unicode character coverage by default. To use the DejaVu fonts reference the font in your stylesheet, e.g. body { font-family: DejaVu Sans; } (for DejaVu Sans). The following DejaVu 2.34 fonts are available: DejaVu Sans, DejaVu Serif, and DejaVu Sans Mono.

Easy Installation

Install with composer

To install with Composer, simply require the latest version of this package.

Make sure that the autoload file from Composer is loaded.

Download and install

Download a packaged archive of dompdf and extract it into the directory where dompdf will reside

Use the packaged release autoloader to load dompdf, libraries, and helper functions in your PHP:

Note: packaged releases are named according using semantic versioning ( So the 1.0.0 release would be This is the only download that includes the autoloader for Dompdf and all its dependencies.

Install with git

From the command line, switch to the directory where dompdf will reside and run the following commands:

Require dompdf and it's dependencies in your PHP. For details see the autoloader in the utils project.

Quick Start

Just pass your HTML in to dompdf and stream the output:

Setting Options

Set options during dompdf instantiation:

or at run time

See Dompdf\Options for a list of available options.

Resource Reference Requirements

In order to protect potentially sensitive information Dompdf imposes restrictions on files referenced from the local file system or the web.

Files accessed through web-based protocols have the following requirements:

Files accessed through the local file system have the following requirement:

Limitations (Known Issues)

Donate button

If you find this project useful, please consider making a donation. Any funds donated will be used to help further development on this project.)

Requires php Version ^7.1 || ^8.0
ext-dom Version *
ext-mbstring Version *
phenx/php-font-lib Version ^0.5.2
phenx/php-svg-lib Version ^0.3.3

The package dompdf/dompdf contains the following files

Loading the files please wait ....