Download the PHP package jelix/tcpdf-module without Composer
On this page you can find all versions of the php package jelix/tcpdf-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jelix/tcpdf-module
More information about jelix/tcpdf-module
Files in jelix/tcpdf-module
Package tcpdf-module
Short Description module for Jelix, providing a Response object and a class, to generate a PDF and sent it to a browser, using TCPDF.
License LGPL-2.1
Homepage http://jelix.org
Informations about the package tcpdf-module
This is a module for Jelix, providing a Response object and a class, to generate PDF and sent it to a browser.
This module is for Jelix 1.6.x and higher and was move into its own repository since Jelix 1.7. See the jelix/jelix repository to see its history.
Installation for Jelix 1.7+
Install it by hands like any other Jelix modules, or use Composer if your Jelix application is using Composer.
In your project:
Launch the configurator for your application to enable the module
And then launch the installer to activate the module
Installation for Jelix 1.6
Install it by hands like any other Jelix modules, or use Composer if your Jelix application is using Composer.
In your project, you should create a composer.json file, and it should contain at least:
app-dir
must indicate the path to the directory containingproject.xml
var-config-dir
must indicate the path of thevar/config
directory of your applicationconfig-file-16
must indicate the name of the configuration file to modify (mainconfig.ini.php
orlocalconfig.ini.php
)
Then launch composer install
.
And then launch the installer to activate the module
Using the module
In your controller, you should retrieve the "tcpdf" response type. The response object has a member which is simply a object (or precisely, an object inheriting from ). See TCPDF documentation about its use and its API.
If you want to override some tcpdf methods, you can use your own object. Example:
of course shall inherit from or (see it in the classes/ directory).