Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.6.3stable
|
MIT license |
1.6.3stable
|
24/09/2011 |
|
1.6.2stable
|
MIT license |
1.6.2stable
|
09/04/2010 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.6.3stable
|
MIT license |
1.6.3stable
|
24/09/2011 |
|
1.6.2stable
|
MIT license |
1.6.2stable
|
09/04/2010 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.6.3stable
|
MIT license |
1.6.3stable
|
24/09/2011 |
|
1.6.2stable
|
MIT license |
1.6.2stable
|
09/04/2010 |
|
1.6.1stable
|
MIT license |
1.6.1stable
|
16/04/2009 |
|
1.6.0stable
|
MIT license |
1.6.0stable
|
11/04/2009 |
Releases for sf 1.1
| Version |
License |
API |
Released |
|
1.6.3stable
|
MIT license |
1.6.3stable
|
24/09/2011 |
|
1.5.5stable
|
MIT license |
1.5.5stable
|
21/01/2008 |
|
1.5.4stable
|
MIT license |
1.5.4stable
|
04/06/2007 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
1.5.5stable
|
MIT license |
1.5.5stable
|
21/01/2008 |
|
1.5.4stable
|
MIT license |
1.5.4stable
|
04/06/2007 |
|
1.5.3stable
|
MIT license |
1.5.3stable
|
18/03/2007 |
Changelog for release 1.5.4 - 04/06/2007
Not available
Other releases
Release 1.6.3 - 24/09/2011
- Updated TCPDF constants for version 5_9_120
- Updated README and examples
- Tested plugin with TCPDF 5_9_120 (2011-09-22)
- Fixed CS and typos
Release 1.6.2 - 09/04/2010
- Updated README and examples
- Modified return sfView::NONE to throw sfStopExecution
- Tested plugin with TCPDF 4_9_011 (2010-04-07)
- Modifications to fit symfony cs
- Extended with callbacks for header and footer functions added magic functions
Release 1.6.1 - 16/04/2009
- Corrected config loader
- Restored config.php
Release 1.6.0 - 11/04/2009
- Converted README to Markdow
- Added a method to get the final TCPDF configuration
- Deleted old config.php
- New plugin configuration handler that allows you to use multiple configs for different actions and pdf
- Reorganized svn structure of the plugin, created 1.0, 1.1 and 1.2 branch
- New version for symfony 1.2
Release 1.5.5 - 21/01/2008
Not available
Release 1.5.4 - 04/06/2007
Not available
Release 1.5.3 - 18/03/2007
Not available
sfTCPDFPlugin
sfTCPDFPlugin class provides abstraction for the TCPDF library.
The main interest of this FPDF extension resides in the fact that it handles any UTF8 strings.
Installation
Install the plugin
symfony plugin-install http://plugins.symfony-project.com/sfTCPDFPlugin
or download it and unzip in your /plugins directory
Download the TCPDF library
Unzip it inside the /plugins/sfTCPDFplugin/lib folder
At this point, you should have a tcpdf folder in /plugins/sfTCPDFPlugin/lib
Configuration
Set sf_tcpdf_dir in your config.php application if TCPDF library is not inside the /plugins/sfTCPDFplugin/lib folder (check /plugins/sfTCPDFPlugin/config/config.php)
If you want to have custom settings for each generated PDF check /plugins/sfTCPDFPlugin/config/config.php and tcpdf/config/tcpdf_config.php).
If you want to run the tests, enable the sfTCPDF module in your settings.yml file, then call sfTCPDF/test or sfTCPDF/test2
Usage
1 - Hello World test (sfTCPDF/test)
/**
Hello world test
*/
public function executeTest()
{
// pdf object
$pdf = new sfTCPDF();
// settings
$pdf->SetFont("FreeSerif", "", 12);
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, *, PDF_FONT_SIZE_MAIN));
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
$pdf->setFooterFont(array(PDF_FONT_NAME_DATA, *, PDF_FONT_SIZE_DATA));
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// init pdf doc
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->Cell(80, 10, "Hello World !!! & é € U û ã„ã‚Âã¯");
// output
$pdf->Output();
return sfView::NONE;
}
2 - Full test (sfTCPDF/test2, check /plugins/sfTCPDFPlugin/actions/actions.php)
Changelog
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
Demo
Notes
- I seems there are problems with the TCPDF class when using PHP 5.1.x
- I am searching beta testers to get some feeback. (C0il on IRC on, comment on my blog or whatever you want !)
TODO
Plugin support
- Please report bugs/feeback in the plugin section of the forum
- You can find also contact me on IRC or by email (check README file)
COil :)