inspiredminds / contao-isotope-pdf-templates
Adds a new document type in Contao Isotope where you can define PDF templates.
Fund package maintenance!
fritzmg
Installs: 1 731
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 1
Type:contao-bundle
Requires
- php: >=7.1
- contao/core-bundle: ^4.9
- isotope/isotope-core: ^2.5
- menatwork/contao-multicolumnwizard-bundle: ^3.4
- mpdf/mpdf: ^8.0
- symfony/config: ^4.0 || ^5.0
- symfony/dependency-injection: ^4.0 || ^5.0
- symfony/event-dispatcher: ^4.0 || ^5.0
- symfony/event-dispatcher-contracts: ^1.0 || ^2.0 || ^3.0
- symfony/finder: ^4.0 || ^5.0
- symfony/http-kernel: ^4.0 || ^5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0 || ^3.0
README
Contao Isotope PDF Templates
Adds a new document type in Contao Isotope where you can define PDF templates.
Important: version 2.x of this extension uses mPDF instead of TCPDF. Here are some things to note:
- mPDF only supports the following fonts: https://mpdf.github.io/fonts-languages/fonts-in-mpdf-7-x.html.
- mPDF has superior HTML and CSS capabilities.
- It is recommended to use a full HTML markup in your
iso_document_…
template.
Custom fonts
Since version 2.1.0
you are able to integrate custom fonts directly via the
back end. First you need to upload the TTF files into a directory within /files
.
Then you need to chose that folder in the font settings of the document. After
choosing the correct folder you need to save the settings, then you will be able
to configure the discovered font files.
For each font you want to use you need enable it and set the variant and family name of the font.