<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 05:05:29 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Generating Invoices with Zend_Pdf]]></title>
      <guid>http://www.phpdeveloper.org/news/16970</guid>
      <link>http://www.phpdeveloper.org/news/16970</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial about using the Zend_Pdf component of the Zend Framework to <a href="http://phpmaster.com/generating-invoices-with-zend_pdf/">generate invoices</a> from the billing data in your application.
</p>
<blockquote>
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.
</blockquote>
<p>
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 <a href="https://github.com/phpmasterdotcom/GeneratingInvoicesWithZendPdf">from github</a>.
</p>]]></description>
      <pubDate>Mon, 10 Oct 2011 09:07:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Creating PDF Documents with Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/15053</guid>
      <link>http://www.phpdeveloper.org/news/15053</link>
      <description><![CDATA[<p>
On the Zend Developer Zone there's <a href="http://devzone.zend.com/article/12492-Creating-PDF-Documents-with-Zend-Framework">a new post</a> by <i>Vikram Vaswani</i> about a method for creating PDF files directly from a Zend Framework application (hint: it uses <a href="http://framework.zend.com/manual/en/zend.pdf.html">Zend_Pdf</a>).
</p>
<blockquote>
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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Tue, 31 Aug 2010 14:27:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Improved PDF generation with RE Framework RE_Pdf]]></title>
      <guid>http://www.phpdeveloper.org/news/12193</guid>
      <link>http://www.phpdeveloper.org/news/12193</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2009/03/20/improved-pdf-generation-with-re-framework-re_pdf/">made a recent post</a> about a library that can manage PDF generation a bit better than the Zend_PDF component of the Zend Framework - RE_PDF.
</p>
<blockquote>
Zend_Pdf, while generally quite good, has one big issue: It does not support word wrapping text! There's a new and still a bit obscure framework called <a href="http://www.refw.org/">RE Framework</a>, which has an excellent PDF component - it includes support for word wrapping, better support for PDF templates, image loading etc.
</blockquote>
<p>
The several of the interfaces (method calls) are similar between Zend_Pdf and RE_Pdf, so there's not too much rewriting involved if you're already using Zend's option. He shows how to parse an XML file, plug those values, the fonts and fields, in the PDF object then flesh it out with a presentation layer and information to fill in the blanks.
</p>]]></description>
      <pubDate>Tue, 24 Mar 2009 08:42:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Making a PDF generator class using Zend_Pdf]]></title>
      <guid>http://www.phpdeveloper.org/news/11148</guid>
      <link>http://www.phpdeveloper.org/news/11148</link>
      <description><![CDATA[<p>
Using the Zend_Pdf component of the Zend Framework <i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2008/10/04/making-a-pdf-generator-class-using-zend_pdf/">created a simple way</a> to make a PDF generator class that uses templates and content arrays/XML to create the new files.
</p>
<blockquote>
There are some <a href="http://www.pdflib.com/">expensive libraries</a> that you can use to generate PDF files...but why bother with them, when there are good free alternatives like Zend_Pdf? [...] Since this is a quite repetitive task, let's also create a PDF generator class to help us. In case you don't have Zend_Pdf, just <a href="http://framework.zend.com/download">download Zend Framework</a> to get it.
</blockquote>
<p>
He shows how to set it up to work with basic PHP arrays to pull the content from as well as an XML structure with the same sort of information. You can <a href="http://codeutopia.net/code/library/CU/PdfGenerator.php">download his class here</a>.
</p>]]></description>
      <pubDate>Mon, 06 Oct 2008 08:44:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Logan Buesching's Blog: Zend_Pdf_Cell]]></title>
      <guid>http://www.phpdeveloper.org/news/9181</guid>
      <link>http://www.phpdeveloper.org/news/9181</link>
      <description><![CDATA[<p>
<i>Logan Buesching</i> has <a href="http://agoln.net/archives/81">submitted a post</a> about an extension he's created for the <a href="http://framework.zend.com/manual/en/zend.pdf.html">Zend_Pdf</a> component of the Zend Framework to add one key feature - positioning.
</p>
<blockquote>
Needless to say, I was quite disappointed when I came to find out that Zend_Pdf doesn't currently have any type of text layout support except for the exact position to place it. I created a small extension to Zend_Pdf, and building off of an idea from <a href="http://www.fpdf.org/">FPDF</a>, I created Zend_Pdf_Cell.
</blockquote>
<p>
<a href="http://framework.zend.com/issues/browse/ZF-1254">His code</a> is not officially included into the Framework, but has been posted for anyone to use if they might need it. It includes features like: the ability to create a cell and put text inside, position a cell, specify the height/width and format it with different fonts. 
</p>
<p>
He also includes installation instructions (copy the file over, basically) and usage examples to get you started.
</p>]]></description>
      <pubDate>Wed, 05 Dec 2007 12:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Zend_Pdf Tutorial]]></title>
      <guid>http://www.phpdeveloper.org/news/8616</guid>
      <link>http://www.phpdeveloper.org/news/8616</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/article/2525-Zend_Pdf-tutorial">posted a new tutorial</a> from <i>Alexander Veremyev</i> as an introduction to the Zend_Pdf component for the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
The <a href="http://framework.zend.com/manual/en/zend.pdf.html">Zend_Pdf</a> component of the <a href="http://framework.zend.com/">Zend Framework</a> is intended to allow you to create or manipulate PDF documents from within your applications. [...] In this tutorial my goal is to give you an overview of the capabilities of Zend_Pdf.
</blockquote>
<p>
<i>Alexander</i> shows the process from start to finish - loading the module, creating a new document, working with text, creating images and shapes, styling, rotation and cropping.
</p>]]></description>
      <pubDate>Mon, 10 Sep 2007 07:58:00 -0500</pubDate>
    </item>
  </channel>
</rss>
