News Feed
Sections




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

Perplexed Labs:
Convert HTML to PDF in PHP (libwkhtmltox extension)
September 16, 2010 @ 11:14:29

On the Perplexed Labs blog today Matt has this new post 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 wkhtmltopdf).

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 wkhtmltopdf. 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.

How does this relate to PHP? Well, he's created an extension 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.

0 comments voice your opinion now!
wkhtmltopdf extension convert html pdf


blog comments powered by Disqus

Similar Posts

DevShed: Benchmarking with the Xdebug Extension

PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component

PHPClasses.org: Lately in PHP, Episode 26 - Accelerating PHP 5.4 with updated PHP cache extensions

Brian Swan's Blog: Rendering SQL Server Reports as Excel Documents with PHP

DevShed: Tracking Parsing Errors with the Tidy Library in PHP 5


Community Events





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


release code list threedevsandamaybe experience opinion unittest community laravel framework series podcast install symfony2 testing introduction configure interview language developer

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