News Feed
Sections




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

Zend Developer Zone:
Creating PDF Documents with Zend Framework
August 31, 2010 @ 14:27:15

On the Zend Developer Zone there's a new post by Vikram Vaswani about a method for creating PDF files directly from a Zend Framework application (hint: it uses Zend_Pdf).

PHP comes with a number of options to help developers dynamically generate PDF files from within their applications. The Haru and PDFlib extensions offer a complete API for dynamic PDF generation, and there also exist a number of open-source PHP components that can be used for the same purpose. This article will introduce you to one such component, the Zend_Pdf component that ships as part of the Zend Framework, and illustrate how it can be used to perform sophisticated PDF operations from within a PHP application.

The tutorial walks you through some of the introductory steps to using the component (outside of the framework) and create a sample PDF with some basic text. It gets more technical by adding in pictures, text wrapping, drawing lines and shapes, styling text and using things like the My_Pdf_Table feature to easily create tables. There's even a bit at the end about using the properties of the file to set things like title, subject and author.

0 comments voice your opinion now!
pdf tutorial zendframework zendpdf document


blog comments powered by Disqus

Similar Posts

ProDevTips.com: Ajax, ZF and Smarty feed reader - part 1

PHPHacks.com: Generate OpenOffice documents with PHP

CatsWhoCode.com: How to make a translatable WordPress theme

Alexy Kovyrin\'s Blog: Nginx With PHP As FastCGI Howto

SitePoint PHP Blog: PINQ Querify Your Datasets Faceted Search


Community Events

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


opinion series community development library framework introduction podcast interview language conference laravel5 api middleware extension voicesoftheelephpant wordpress unittest laravel release

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