Download and install dompdf/dompdf without Composer

Please rate this library. Is it a good library?

All versions of dompdf with dependencies

Version
Requires php Version >=5.4.0
ext-gd Version *
ext-dom Version *
ext-mbstring Version *
phenx/php-font-lib Version 0.5.*
phenx/php-svg-lib Version 0.3.*

Informations about the package dompdf

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 or Follow us on Google+.


Features

Requirements

Recommendations

Visit the wiki for more information: https://github.com/dompdf/dompdf/wiki/Requirements

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 an 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:

Install with git

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

Require dompdf, libraries, and helper functions in your PHP:

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.

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.)


The package dompdf/dompdf contains the following files

Loading the files please wait ....