pluswerk / html_to_pdf
Pluswerk: HTML to PDF
Installs: 2 424
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ~8.2.0
- composer-runtime-api: ^2.2.2
- mpdf/mpdf: ^8.0
- typo3/cms-core: ^11.5.0 || ^12.4.0
- typo3/cms-frontend: ^11.5.0 || ^12.4.0
Requires (Dev)
- pluswerk/grumphp-config: ^6.7
- saschaegerer/phpstan-typo3: ^1.8.2
- ssch/typo3-rector: ^1.1.3
README
This extension adds a page type which returns a pdf from the website you are currently visiting.
For this, a middleware checks the pagetype and on match it throws the content inside mPdf, which then generates a pdf-file.
You can write your own templates with fluid and include your own css-files for styling. Also everything is overwritable.
Usage
Include the extensions' setup.typoscript
and constants.typoscript
.
Add typeNum 1590672891 to your routing config. You can add 1590672892 as well for debug purposes.
Replace the default template EXT:html_to_pdf/Resources/Private/Pdf/Templates/Index.html to render the correct col or do different layout adjustments for your project.