sfTCPDFReloadedPlugin - 1.0.0

symfony sample plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
This plugin is deprecated and is not maintained anymore. Changed the name to sfTCPDFFPDIPlugin
Show source | Show as Markdown

This plugin allows you to easily create a pdf file. You can also import an existing pdf in the background.

Install:

svn checkout http://sf-tcpdf-reloaded-plugin.googlecode.com/svn/trunk/plugins/sfTCPDFReloadedPlugin
php symfony cc
php symfony plugin:publish-assets

Add the Plugin in your ProjectConfiguration Class

example:

$this->enablePlugins(array('sfDoctrinePlugin','sfTCPDFReloadedPlugin'));

Download the TCPDFLib from: http://www.tcpdf.org/

Copy the files into yourProjectPath/plugins/sfTCPDFReloadedPlugin/lib/tcpdf/

Activate the Plugin in your ProjectConfiguration.Class

Example:

$this->enablePlugins(array('sfDoctrinePlugin','sfTCPDFReloadedPlugin'));

Usage example:

$pdf = new sfTCPDFReloaded();
$pdf->setPdfBackground(sfConfig::get('sf_plugins_dir').'/sfTCPDFReloadedPlugin/data/example.pdf');
$pdf->AddPage();
$pdf->writeHTML('Hello World!');
 
$pdf->Output('ibrows.ch.pdf', 'I');

more examples under: http://www.tcpdf.org/examples.php