Pdf Tests

For details on how to use it see generating-pdfs-with-cakephp or the CakePDF plugin directly.

Notes

For me DomPdf was the one working out of the box on all systems. Even though slower than WkHtmlToPdf that usually suffices for background PDF tasks.
WkHtmlToPdf on the other hand seems to support some more advanced CSS features like floating etc. With the custom binary path you can make WkHtmlToPdf work both on linux and windows without problems.

Note that it's best to use PNG images, as GIF don't seem to work with most PDF engines.

Also note the Custom Download Filename trick from here when displaying PDFs that you want the user to display the PDF first and manually download afterwards. This will ensure the filename is what it was intended to be.

Installation of WkHtmlToPdf

I got the binary files from code.google.com/p/wkhtmltopdf/downloads/list. Put them somewhere in your app or on your system and link them via `Configure::write('CakePdf.binary', $path)`. In my case:
if (WINDOWS) {
	Configure::write('CakePdf.binary', APP . 'files\wkhtmltopdf\wkhtmltopdf.exe');
} else {
	Configure::write('CakePdf.binary', APP . 'files/wkhtmltopdf/bin/wkhtmltopdf');
}

Send your feedback or bugreport!