<?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>Thu, 24 May 2012 04:34:12 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Code2Learn.com: Generating PDF files from Database using CodeIgniter]]></title>
      <guid>http://www.phpdeveloper.org/news/17606</guid>
      <link>http://www.phpdeveloper.org/news/17606</link>
      <description><![CDATA[<p>
On the Code2Learn blog there's a recent tutorial about <a href="http://www.code2learn.com/2012/02/generating-pdf-files-from-database.html">creating PDFs from CodeIgniter</a> using the <a href="http://www.ros.co.nz/pdf/">R&OS PDF class</a> (not bundled with the framework, but easy to integrate).
</p>
<blockquote>
As a programmer I find PDF files very helpful to me when generating reports and getting them printed. We will be using <a href="http://www.ros.co.nz/pdf/">R&OS pdf class</a>. I find this to be the best one because all others libraries I came across didn't offer me a good control over the making of the file and also the process of making i.e the code required for this library is bit tricky but it helped me improve my coding. 
</blockquote>
<p>
Code is included to create a simple PDF helper class that creates a new "cezpdf" object and add some basic things like titles, page numbers and some basic footer text. A simple controller is included that pulls the information from a database table (in their case a record of logins) and pushes this data into the PDF as lines of text.
</p>]]></description>
      <pubDate>Wed, 29 Feb 2012 12:07:33 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Updated tutorial for Zend Framework 2 beta 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17011</guid>
      <link>http://www.phpdeveloper.org/news/17011</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a quick note for fans (or those just discovering) his "Getting Started with Zend Framework" tutorial - he's posted an <a href="http://akrabat.com/zend-framework/updated-tutorial-for-zend-framework-2-beta-1/">updated version for ZF2 beta 1</a>.
</p>
<blockquote>
<a href="http://akrabat.com/zf2t/">Getting started with Zend Framework 2 (beta1)</a>, creates the same application as my ZF1 tutorial, so it should be very familiar, but this time, it's in the context of Zend Framework 2. As usual, it's a PDF too.
</blockquote>
<p>
<a href="http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework-2.pdf">This latest version</a> gives you a gentle introduction to the framework and steps you through the creation of a sample music inventory system. It includes code and explanations of how set up modules, controllers, models and views and how to tie them all together. If you're new to the framework and want to get off and running quickly, I'd highly recommend <a href="http://akrabat.com/getting-started-with-zend-framework-2/">his tutorial</a>.
</p>]]></description>
      <pubDate>Wed, 19 Oct 2011 08:33:26 -0500</pubDate>
    </item>
    <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[Sameer Borate's Blog: Read the version of a PDF in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16621</guid>
      <link>http://www.phpdeveloper.org/news/16621</link>
      <description><![CDATA[<p>
<i>Sameer Borate</i> has a quick post to his blog today with some code that lets you <a href="http://www.codediesel.com/php/read-the-version-of-a-pdf-in-php/">read the version of a PDF document</a> programmatically without a dependency on a PDF extension or library being installed.
</p>
<blockquote>
The following [example] is a very short code to read the version number of a PDF document using PHP. I needed this recently during a PDF processing app developed in PHP. As Adobe uses different compression methods in various versions, it becomes necessary to be able to identify the version of the PDF under work.
</blockquote>
<p>
<a href="http://www.codediesel.com/php/read-the-version-of-a-pdf-in-php/">The code</a> opens the file with a <a href="http://php.net/fopen">fopen</a> and parses a certain line for the major and minor version. The PDF extension for PHP can do something similar with the <a href="http://www.php.net/manual/en/function.pdf-get-value.php">pdf_get_value</a> function passing in either "major" or "minor" as the second parameter.
</p>]]></description>
      <pubDate>Fri, 22 Jul 2011 09:54:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Creating and Manipulating PDFs with PHP and FPDF]]></title>
      <guid>http://www.phpdeveloper.org/news/16032</guid>
      <link>http://www.phpdeveloper.org/news/16032</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial about <a href="http://www.phpbuilder.com/columns/php-pdf-generation/Jason_Gilmore03102011.php3">creating editing PDFs</a> with the help of the <a href="http://www.fpdf.org/">FPDF library</a>.
</p>
<blockquote>
Because the Web has become the primary mechanism for distributing PDF documents, it's common to encounter questions on various web development forums pertinent to the dynamic creation of PDF documents using languages such as PHP. [...] Thankfully, such a demand for PDF manipulation capabilities exists within the PHP community that numerous alternative open source solutions have long been available, including notably <a href="http://www.fpdf.org/">FPDF</a>.
</blockquote>
<p>
They help you get the library installed and show you how to create a basic PDF with some simple text inside. They build on this and show how to add multiple text sections, images and watermarks.
</p>]]></description>
      <pubDate>Fri, 11 Mar 2011 10:13:07 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect: Seeing Triple!]]></title>
      <guid>http://www.phpdeveloper.org/news/15991</guid>
      <link>http://www.phpdeveloper.org/news/15991</link>
      <description><![CDATA[<p>
php|architect Magazine has <a href="http://www.phparch.com/2011/03/seeing-triple/">officially announced</a> the introduction of a new publishing format for their magazine. Readers are no longer tied to just PDF versions - they can now opt for ePUB editions of the magazine starting with this month's issue (and retroactively!).
</p>
<blockquote>
Still, even though PDF was a less popular format in 2002 than it has become today, it was a much easier choice for us when the only way to read an electronic publication was to sit in front of a computer. The advent of portable e-book readers demanded that we consider other formats; as a result, about six months ago we started a skunkworks program, spearheaded by our very own Keith Casey, to create ePub and MOBI versions of our magazine.
</blockquote>
<p>
Thanks to an ePUB document generator, the magazine can now be dynamically generated into three formats - the usual PDF file, an ePUB edition and a MOBI edition for the Kindle fans out there. All subscribers have been upgraded to this plan - the Premium subscription - and are able to start pulling down these editions today.
</p>]]></description>
      <pubDate>Thu, 03 Mar 2011 10:05:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sudheer Satyanarayana's Blog: Zend Date Class Constants Cheat Sheet]]></title>
      <guid>http://www.phpdeveloper.org/news/15645</guid>
      <link>http://www.phpdeveloper.org/news/15645</link>
      <description><![CDATA[<p>
<i>Sudheer Satyanarayana</i> has provided <a href="http://techchorus.net/zend-date-class-constants-cheat-sheet">a handy cheat sheet</a> for those using the Zend_Date component of the Zend Framework listing the default values of the constants it provides.
</p>
<blockquote>
Date and time handling in general is a problem in programming. For PHP programmers, there's a good library out there that performs all the difficult tasks and provides convenient APIs. Zend_Date has several constants defined. It is good to know what each one of them represents.
</blockquote>
<p>
You can either come back to <a href="http://techchorus.net/zend-date-class-constants-cheat-sheet">this post</a> if you need a reference or you can <a href="http://techchorus.net/downloads/cheat-sheets/zend-date-constants-cheat-sheet-techchorus.pdf">download the PDF</a> and have it right at your fingertips.
</p>]]></description>
      <pubDate>Tue, 28 Dec 2010 10:04:21 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Rendering SQL Server Reports as Excel Documents with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15190</guid>
      <link>http://www.phpdeveloper.org/news/15190</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/09/23/rendering-sql-server-reports-as-excel-documents-with-php.aspx">a new post</a> to his blog that looks at a method for pulling back the reports from a SQL Server instance in something a bit more readable/useful - an Excel document.
</p>
<blockquote>
One of the most common questions [from his <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/05/04/getting-started-with-sql-server-reporting-services-ssrs-and-php.aspx">previous post</a>] has been "How do I render a report as an Excel document?" I've been telling folks that this is easy with the <a href="http://ssrsphp.codeplex.com/">SSRS SDK for PHP</a> (and it is  easy), but when I sat down to do it, I ran into a problem. So, in this post, I'll show you how to render a SSRS report as an Excel document and how to avoid the one problem that caused me headaches.
</blockquote>
<p>
This post's a short one with a code snippet (<a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Components-PostAttachments/00-10-06-27-28/ssrsDemo.zip">and download</a>) showing how to connect to the server and create a "RenderAsEXCEL" object and request the report information with that in the rendering function. Then it's just as simple as pushing that information out to a file as a ".xls". The included download will also let you pull down the report as HTML or as a PDF.
</p>]]></description>
      <pubDate>Mon, 27 Sep 2010 10:15:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: "Web Scraping with PHP" Now Available in Print!]]></title>
      <guid>http://www.phpdeveloper.org/news/15157</guid>
      <link>http://www.phpdeveloper.org/news/15157</link>
      <description><![CDATA[<p>
If you've been waiting for the print edition of <i>Matthew Turland</i>'s "Web Scraping with PHP" book (from php|architect Press) your <a href="http://matthewturland.com/2010/09/18/web-scraping-with-php-now-available-in-print/">wait is over</a>. According to a new post on his blog the print version is now <a href="http://www.phparch.com/wp-content/themes/phpa/helpers/book/buy.php?book_web_scraping">available for order</a>.
</p>
<blockquote>
I know a number of my readers have been waiting for this announcement: my book, Web Scraping with PHP, is now available for sale in hard copy form! That's right, you can now <a href="http://www.phparch.com/wp-content/themes/phpa/helpers/book/buy.php?book_web_scraping">finally order your very own print edition copy</a>. [...] To those who felt forced into buying the PDF edition to get access to the content because a print edition was not available until now, you have my most sincere and profound apologies. 
</blockquote>
<p>
His web scraping book covers topics like understanding HTTP requests on a base level, working with several HTTP clients like cURL, pecl_http, Zend_Http_Client and how to analyze the remote page's information with things like SimpleXML, the DOM functions and the XMLReader extension. If the print version's not your thing, you can still <a href="http://www.phparch.com/books/phparchitects-guide-to-web-scraping-with-php/">get the PDF</a> from the php|architect store too.
</p>]]></description>
      <pubDate>Mon, 20 Sep 2010 12:03:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Perplexed Labs: Convert HTML to PDF in PHP (libwkhtmltox extension)]]></title>
      <guid>http://www.phpdeveloper.org/news/15141</guid>
      <link>http://www.phpdeveloper.org/news/15141</link>
      <description><![CDATA[<p>
On the Perplexed Labs blog today <i>Matt</i> has <a href="http://blog.perplexedlabs.com/2010/09/15/convert-html-to-pdf-in-php-libwkhtmltox-extension/">this new post</a> looking at a common issue developers face when they're trying to make their site easier for users to get their information off a site and onto their local machines - converting HTML over to PHP (using <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltopdf</a>).
</p>
<blockquote>
Often this involves using somewhat cryptic output primitives and creating the PDF by hand. Wouldn't it be nice if there were a way to re-use all that beautiful HTML, CSS, and maybe even Javascript that you already wrote? Well, there is. It's called <a href="http://code.google.com/p/wkhtmltopdf/">wkhtmltopdf</a>. Normally a command line utility, with the release of 0.10.0_beta5 antialize included a simple C API to be able to build bindings in other popular languages.
</blockquote>
<p>
How does this relate to PHP? Well, he's <a href="http://github.com/mreiferson/php-wkhtmltox">created an extension</a> specifically to hook PHP into the tool and make calls like "wkhtmltopdf_convert" with the output type and page to convert as parameters and a PDF filename to push it out to.
</p>]]></description>
      <pubDate>Thu, 16 Sep 2010 11:14:29 -0500</pubDate>
    </item>
  </channel>
</rss>

