Download the PHP package mkebza/wk-pdf-bundle without Composer
On this page you can find all versions of the php package mkebza/wk-pdf-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mkebza/wk-pdf-bundle
More information about mkebza/wk-pdf-bundle
Files in mkebza/wk-pdf-bundle
Package wk-pdf-bundle
Short Description Simple wrapper for wkhtmltopdf for symfony
License MIT
Informations about the package wk-pdf-bundle
Installation
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
How to to use
Generate new PDF document from file and send it as response. Controller function:
As profile can be profile name, array of options (new anonymous profile will be created), PDFRenderingProfile object or null (default profile is used).
Configuration
Profiles
There are 2 predefined profiles a4
, a4_borderless
. you can define your own in configuration
parameters aren't parset nor escaped, they are passed to wkhtmltopdf bin as are. So be careful. Wkhtmltopdf documentation.
if you name your profile with same name as one of default one, yours will overwrite default one.
All versions of wk-pdf-bundle with dependencies
symfony/dependency-injection Version ~3.4|~4.0|~5.0|~6.0
symfony/config Version ~3.4|~4.0|~5.0|~6.0
symfony/process Version ~3.4|~4.0|~5.0|~6.0
symfony/filesystem Version ~3.4|~4.0|~5.0|~6.0
symfony/http-foundation Version ~3.4|~4.0|~5.0|~6.0