Download the PHP package roadiz/abstract-pdf-theme without Composer
On this page you can find all versions of the php package roadiz/abstract-pdf-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download roadiz/abstract-pdf-theme
More information about roadiz/abstract-pdf-theme
Files in roadiz/abstract-pdf-theme
Download roadiz/abstract-pdf-theme
More information about roadiz/abstract-pdf-theme
Files in roadiz/abstract-pdf-theme
Vendor roadiz
Package abstract-pdf-theme
Short Description Abstract PDF middleware for your Roadiz theme to generate PDF responses out of your contents.
License MIT
Package abstract-pdf-theme
Short Description Abstract PDF middleware for your Roadiz theme to generate PDF responses out of your contents.
License MIT
Please rate this library. Is it a good library?
Informations about the package abstract-pdf-theme
Abstract PDF Theme
Abstract PDF middleware for your Roadiz theme to generate PDF responses out of your contents.
Dependency injection
- Add PDF services to your project
app/AppKernel.php
:
or in your app/conf/config.yml
:
PdfControllerTrait
Usage
All you need to do is to create your node-source Controller
in your theme and use PdfControllerTrait
. You will be able to override any methods to configure your PDF rendering such as:
protected function getPdfTemplate(): string
(Default:'@AbstractPdfTheme/pdf/base.xml.twig'
)protected function getPdfStylesheetPath(): string
(Default:$this->getResourcesFolder() . '/config/pdf_stylesheet.xml'
)protected function getPdfFilename(NodesSources $nodeSource = null): string
(Default:'@AbstractPdfTheme/pdf/fonts.xml.twig'
)
Template examples
Resources/views/
folder contains useful templates for creating your own PDF. Feel free to include them directly in your theme or duplicated them.
All versions of abstract-pdf-theme with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
roadiz/roadiz Version ^1.6.0
rezozero/pdfsafe Version ^1.1
psliwa/php-pdf Version ^1.2
roadiz/roadiz Version ^1.6.0
rezozero/pdfsafe Version ^1.1
psliwa/php-pdf Version ^1.2
The package roadiz/abstract-pdf-theme contains the following files
Loading the files please wait ....