Saturday, November 28, 2009

Adobe Wave

Adobe Wave is really cool and opens up so many new areas, and potential to push / alert your customers, do marketing, server alerts... whole new stuff. It's still in BETA now and you will need a publisher account to start working with it, the API is simple and can be integrated easily. Based on ADBOBE AIR, you would need to install it.

Adobe still provides PHP code example for API usage, hope they will start using their technology, COLDFUSION for coding examples and hosting their stuff.

Below is the link for Adobe wave

Creating PDF using wkhtmltopdf and Coldfusion

Coldfusion 8.0 does not support creating PDF from HTML pages which have Javascript that changes the look and feel, but in most of the cases you will have to create PDF for such documents only as JS is very common.

I looked on internet and found a really good free working solution, that works across MAC, LINUX and WINDOWS, wkhtmltopdf uses webkit rendering engine, and qt and works perfectly.


1. Download the required wkhtmltopdf for your operating system from
2. Use cfexecute command to call the program, you can either use and URL to a file path on your server and call it, below example uses a file on the server

windows - <cfexecute name="wkhtmltopdf.exe"
arguments="file:///d:/tmp/x.html d:\tmp\x.pdf"

Linux - <cfexecute name="wkhtmltopdf"
arguments="/tmp/x.html /tmp/x.pdf"

That is all what you need, it's a really good solution and works perfectly to create PDF, I hope Coldfusion introduces the use of JS in the next version of cfdocument tag. Ideally it should as CF on back uses iText Java free library which does everything.