sfTCPDFPlugin - 1.6.0

The sfTCPDFPlugin allows you to generate PDF documents with the help of the TCPDF library.
It comes with a config handler that allows you to manage several TCPDF configurations
in a symfony YAML config file.

The sfTCPDFPlugin provides abstraction for the TCPDF library. The main interest of this FPDF "fork" resides in the fact that it handles any UTF8 strings witch the native encoding format used by symfony.

sfTCPDFPlugin

This plugin provides abstraction for the TCPDF library. The main interest of this FPDF "fork" resides in the fact that it can handle any UTF8 strings which is the native encoding format used by symfony.

Developers

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release 1.5.5 - 21/01/2008

Release 1.5.4 - 04/06/2007

Release 1.5.3 - 18/03/2007

sfTCPDFPlugin

The sfTCPDFPlugin plugin provides abstraction for the TCPDF library.
The main interest of this FPDF "fork" resides in the fact
that it can handle any UTF8 strings witch is the native encoding format used by symfony.
It also provides a handy config handler to manage several TCPDF configurations
with a YAML file, so you don't have to set the TCPDF constants.

Installation

Unzip it inside the /plugins/sfTCPDFplugin/lib folder, at this point, you
should have a tcpdf folder in /plugins/sfTCPDFPlugin/lib

Publish the assets of the plugin (this is only usefull if you want to test the demos included in the plugin)

$ symfony plugin:publish-assets

Clear you cache

$ symfony cc

Configuration

The plugin comes with a default configuration, but you will surely want to add some:

Copy the /plugins/sfTCPDFPlugin/config/pdf_configs.yml into the config folder
of your application. Then this file will be used.

Now, you can add your own configurations. You should keep the default one witch
is the basic configutation provided by TCPDF.

Note that you don't have to modify the parameters in the # Auto-detected section,
because the config handler of the plugin will set these values for you. But if
you set a value for one of these parmeters, the plugin will not override it.

Demo

If you want to run the tests, enable the sfTCPDF module in your settings.yml
file, then call sfTCPDF/test or sfTCPDF/test2. (If you have desactivated the
default symfony routes, a routing.yml file is included in the config folder
of the plugin.

Notes

It seems there are problems with the TCPDF class when using PHP 5.1.x under windows.

TODO

Support

Please report bugs on the symfony TRAC, i could also answer if you ask on
the symfony mailing list

Changelog

Check the changelog TAB to see changelogs of >= 1.6.0 versions

1.5.3

Initial version for TCPDF 1.53 TC030

2007-06-04 | 1.5.4 Stable

Fix Full test (sfTCPDF/test2)

Customize Plugin is now possible

2008-01-21 | 1.5.5 Stable

Change the constant FPDF_FONTPATH to K_PATH_FONTS for work with the last version of TCPDF (Garfield-fr)