Download the PHP package acucchieri/tcpdf-bundle without Composer
On this page you can find all versions of the php package acucchieri/tcpdf-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acucchieri/tcpdf-bundle
More information about acucchieri/tcpdf-bundle
Files in acucchieri/tcpdf-bundle
Package tcpdf-bundle
Short Description Integration of the tcpdf library with Symfony
License MIT
Homepage https://github.com/acucchieri/ACTcpdfBundle
Informations about the package tcpdf-bundle
ACTcpdfBundle
The ACTcpdfBundle
integrates the TCPDF PHP library with Symfony. This means easy-to-implement and easy-to-ouptput PDF documents in your Symfony application.
Installation
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 the following line in the app/AppKernel.php file of your project:
Usage
Use AC\TcpdfBundle\Pdf\PdfBuider
to create your PDF document. This class extends TCPDF, see TCPDF documentation for more informations about PDF generation.
PDF Output
ACTcpdfBundle
provide helpers to serve your PDF
Display the PDF in the browser
Return a Response with Content-Disposition: inline
Download the PDF
Return a Response with Content-Disposition: attachment
Get the PDF as base64 mime multi-part email attachment (RFC 2045)
Save the PDF on a filesystem
Output the PDF as string
MultiCell Helper
AC\TcpdfBundle\Pdf\PdfBuilder::addMultiCellRow($cells, $sameHeight, $nobr)
allow you to build complex tables, based on MultiCell
.
$cells
is a multidimensional array. Each cell (array) contains :
- The data (text or html)
- The options. Available options :
height
Cell heightwidth
Cell widthborder
Draw the cell borders. Allowed values : 0 or 1. Default = 0align
Horz alignment. Allowed values : 'L' (left), 'C' (center), 'R' (right) or 'J' (justify). Default = 'T'valign
Vert alignment. Allowed values 'T' (top), 'M' (middle) or 'B' (bottom). Default = 'T'fill
Indicates if the cell background must be painted. true or false. Default = falseis_html
Indicate if the data is html. See TCDPF doc for the supported tags. Default = false
$sameHeight
If set to true
all the row cells have the same height. Default = false.
$nobr
If set to true
the row is not break across 2 pages. Default = false.
Example
License
This bundle is under the MIT license. See the complete license in the bundle