<?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>Fri, 24 May 2013 03:59:39 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Raymond Kolbe's Blog: DOMPDF in ZF2]]></title>
      <guid>http://www.phpdeveloper.org/news/18191</guid>
      <link>http://www.phpdeveloper.org/news/18191</link>
      <description><![CDATA[<p>
<i>Raymond Kolbe</i> has a recent post to his blog about <a href="http://raymondkolbe.com/2012/07/01/dompdf-in-zf2/">using the DOMPDF library</a> to generate PDFs in a Zend Framework 2 application.
</p>
<blockquote>
If you're using Zend Framework 2 (beta 4) and need to easily generate PDFs, and you'd like to generate those PDFs from an HTML template, then boy do I have some good news for you! For those of you who have dealt with generating dynamic PDFs, you know how much of a pain in the ass it can be (e.g. dealing with x, y coordinates, word-wrap (or lack of), etc.). There are a few options out there, some paid, some free, but none of them are as nice as <a href="http://code.google.com/p/dompdf/">DOMPDF</a> (simple API, powerful, and free). The true power behind DOMPDF comes from rendering standard HTML/CSS files instead of having to write ugly and unmanageable code.
</blockquote>
<p>
He includes a simple example showing how to use the library to create a basic PDF document (containing an HTML string) and how to port that same thing over to work in ZF2 via a custom <a href="http://packagist.org/packages/dino/dompdf-module">DOMPDFModule</a> (a ViewModel). You can find out more about this module in it's <a href="https://github.com/raykolbe/DOMPDFModule/blob/master/README.md">README</a> on github.
</p>]]></description>
      <pubDate>Fri, 06 Jul 2012 10:08:27 -0500</pubDate>
    </item>
  </channel>
</rss>
