News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Generating Invoices with Zend_Pdf
October 10, 2011 @ 09:07:15

On PHPMaster.com today there's a new tutorial about using the Zend_Pdf component of the Zend Framework to generate invoices from the billing data in your application.

The PDF format is currently the most used format to exchange documents. If you provide your website users with printable versions of invoices, event tickets and other similar documents, you'll most likely want to generate them as PDFs on the fly. In this article you will see how you can use Zend_Pdf to auto-generate PDF invoices.

The concept is pretty simple - take the rows of invoice data from your system and inject them into a new PDF document. They show you how to create an invoice layout that includes that data, a header with your company name, invoice-related information and the total/amount due at the bottom. The full code is included to help you create the Zend_Pdf object, apply the text to it (based on location in the document) and working with the default font. You can download the full source from github.

0 comments voice your opinion now!
invoices zendpdf zendframework dynamic tutorial pdf


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Bitcoin and PHP with Coinbase’s API – Basic Usage

DevShed: Factoring Content Boxes with the Factory Pattern in PHP 5

Tom Van Herreweghe's Blog: Running Zend Framework modules from a Phar file

Ryan Mauger's Blog: Keeping your html valid with Zend Framework, Tidy and Firebug

Dotvoid.com: Zend Feed for a Swedish web development blog aggregator


Community Events





Don't see your event here?
Let us know!


series bugfix api release laravel language deployment community opinion podcast interview tips voicesoftheelephpant symfony framework introduction library install package list

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework