w3scout/contao-dompdf-bundle

Use DOMPDF to export articles as PDF.

1.0.7 2023-12-14 20:41 UTC

This package is auto-updated.

Last update: 2024-11-14 22:36:15 UTC


README

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