Skip to content

w3scout/contao-dompdf-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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