Download the PHP package inspiredminds/contao-pdf-generation without Composer
On this page you can find all versions of the php package inspiredminds/contao-pdf-generation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inspiredminds/contao-pdf-generation
More information about inspiredminds/contao-pdf-generation
Files in inspiredminds/contao-pdf-generation
Package contao-pdf-generation
Short Description Allows you to create a PDF for a complete Contao page.
License LGPL-3.0-or-later
Homepage https://github.com/inspiredminds/contao-pdf-generation
Informations about the package contao-pdf-generation
Contao PDF Generation
This allows generating PDF files from regular Contao pages via the mPDF PDF generator.
Usage
First you need to create a PDF generation configuration. If you only need the default settings, the following would suffice for example:
Otherwise check the output of config:dump-reference contao_pdf_generation
for more options.
Next you will have to select a PDF generation configuration in your Contao page layout. You can find this in the Expert settings tab of your layout under PDF generation configuration. Only pages with a valid PDF generation configuration layout will be able to actually generate a PDF.
Next you will have to create a Generate PDF front end module in your theme. This module will output a form with a submit button that will trigger the PDF generation for the current page. Insert this module then either in your layout, or directly in your content somewhere.
All versions of contao-pdf-generation with dependencies
contao/core-bundle Version ^4.13 || ^5.0
symfony/config Version ^5.4 || ^6.4 || ^7.1
symfony/dependency-injection Version ^5.4 || ^6.4 || ^7.1
symfony/event-dispatcher Version ^5.4 || ^6.4 || ^7.1
symfony/http-foundation Version ^5.4 || ^6.4 || ^7.1
symfony/http-kernel Version ^5.4 || ^6.4 || ^7.1
mpdf/mpdf Version ^8.2