<?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 00:16:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Marcus Bointon's Blog: Compiling wkhtmltopdf on Mac OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/17967</guid>
      <link>http://www.phpdeveloper.org/news/17967</link>
      <description><![CDATA[<p>
<i>Marcus Bointon</i> has <a href="http://marcus.bointon.com/compiling-wkhtmltopdf-on-mac-os-x-10-7-lion/">written up the process</a> he took to get the PHP extension for <a href="http://code.google.com/p/wkhtmltopdf/">Wkhtmltopdf</a> (a conversion tool for HTML to PDF generation) up and working on a Mac OSX machine - not as easy a task as it sounds.
</p>
<blockquote>
<a href="http://code.google.com/p/wkhtmltopdf/">Wkhtmltopdf</a> is extremely cool. I've used qtwebkit for generating server-side page images before using <a href="https://github.com/AdamN/python-webkit2png">python-webkit2png</a>, and that's fine (unlike using Firefox running in xvfb!), but I need to produce PDFs. So, I looked around and found several neat, simple PHP wrappers for calling wkhtmltopdf, and even a <a href="https://github.com/mreiferson/php-wkhtmltox">PHP extension</a>. "Great", I thought, "I'll just install that and spend time working on the layouts since the code looks really simple". I spoke too soon.
</blockquote>
<p>
He goes through each step of the process - installing the needed wkhtmltox and libwkhtmltox support, having to manually compile wkhtmltopdf and some of the small changes you'll need to make to the Makefile to get things to cooperate. He shows where to put the resulting application files and the name of the extension to enable in your php.ini.
</p>]]></description>
      <pubDate>Wed, 16 May 2012 11:55:26 -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>
