Download the PHP package typesetsh/pdf-bundle without Composer
On this page you can find all versions of the php package typesetsh/pdf-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download typesetsh/pdf-bundle
More information about typesetsh/pdf-bundle
Files in typesetsh/pdf-bundle
Package pdf-bundle
Short Description This bundle provides a wrapper for using the typeset.sh pdf engine.
License MIT
Informations about the package pdf-bundle
TypesetshBundle
This bundle is simple wrapper for the typeset.sh pdf engine.
Typeset.sh is a css/html layout engine that allows to render as PDF.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in config/bundles.php
file of your project:
Usage
Render a view as pdf. You can use the abstract controller to render a twig view as pdf.
Alternative you can also use dependency injection to retrieve the pdf generation and do with it as you wish.
Configuration
Security
Make sure to only whitelist the directories that do not contain any sensitive information
to prevent leaking any data. If your templates are escaped correctly this should
never be an issue, yet it's always good to ignore any resource that is not
whitelisted in allowed_directories
.
By default only the /public
directory is allowed. If you like to add any other directory
you must whitelist it first.
HTML template example
Many CSS features are supported. See typeset.sh for more details and demos.
License
This bundle is under the MIT license.
However, it requires a version of typeset.sh to work.
All versions of pdf-bundle with dependencies
symfony/framework-bundle Version ^4.3 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.3 || ^5.0 || ^6.0 || ^7.0
symfony/http-client Version ^4.3 || ^5.0 || ^6.0 || ^7.0
symfony/twig-pack Version ^1.0
symfony/yaml Version ^4.3 || ^5.0 || ^6.0 || ^7.0
symfony/config Version ^4.3 || ^5.0 || ^6.0 || ^7.0
typesetsh/typesetsh Version ^0.26.0