Use DOMPDF to export articles as PDF.
DOMPDF is slower than TCPDF but provides better CSS support.
- PHP version >= 5.6.0
- DOM extension
- GD extension
- MBString extension
- php-font-lib
- php-svg-lib
- OPcache (OPcache, XCache, APC, etc.): improves performance
- IMagick or GMagick extension: improves image processing performance
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
- 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