Monthly Archives: April 2010

PHP class to interact with PDFcrowd.com

PDFcrowd looks incredibly cool, but there’s no PHP version of the interface.  I mocked one up very crudely.  It needs some work for throwing / catching exceptions, but I’m sure someone out there is interested in it.

It works as follows:

$pdf = new PDFCrowd($username, $app_id);
$pdf->urltopdf(‘http://www.tokyomuslim.com/2010/04/php-class-to-run-pdfcrowd-com/’, $location)
This deposits a PDF version of the document in $location on your system.  The htmltopdf method handles HTML streaming and filetopdf handles File uploads & conversions.  It’s definitely worth a try so give it a shot and let me know what breaks :-)
You can download it here.