w3scout / contao-dompdf-bundle
Use DOMPDF to export articles as PDF.
Installs: 1 328
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
Type:contao-bundle
Requires
- php: >=7.1.0
- contao/core-bundle: ^4.4
- dompdf/dompdf: >=2.0.4
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
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