/contao-dompdf-bundle

Use DOMPDF to export articles as PDF

Primary LanguagePHPGNU Lesser General Public License v3.0LGPL-3.0

Contao DOMPDF Bundle

Latest Stable Version Total Downloads Latest Unstable Version License Codacy Badge

About

Use DOMPDF to export articles as PDF.
DOMPDF is slower than TCPDF but provides better CSS support.

Requirements

  • PHP version >= 5.6.0
  • DOM extension
  • GD extension
  • MBString extension
  • php-font-lib
  • php-svg-lib

Recommendations

  • OPcache (OPcache, XCache, APC, etc.): improves performance
  • IMagick or GMagick extension: improves image processing performance

More information on Dompdf

Installation

Install composer if you haven't already, then enter this command in the main directory of your Contao installation:

composer require w3scout/contao-dompdf-bundle

Usage

  • Login to the backend and enable Dompdf at the system settings.
  • Go to the themes section of the backend and create a stylesheet (@media print) to style the PDF output