![]() |
|
sfTCPDFReloadedPlugin - 1.0.0symfony sample plugin |
|
![]() |
1
user
Sign-in
to change your status |
Just a sample plugin to illustrate PEAR packaging |
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
| Name | Status | |
|---|---|---|
|
|
lead |
Copyright (c) Olivier Kofler
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.