I have a ColdFusion page with a styled HTML table in it. What I would like to be able to do is set up a feature that allows our customers to save the table as an image file, for use in their slide shows. I have read some of the documentation for cfcontent however, I am beginning to get the feeling that I will need a third party library. I was hoping someone could shed some light on this.
Share
You could render your html table to a static page, then call http://code.google.com/p/wkhtmltopdf/ using cfexecute to render to pdf, or wkhtmltoimage can convert to .png .gif etc
Here’s a static page with a test table and some css table.cfm
Make a simple batch file wkhtmltoimage.bat
More command line options here
Use cfexecute to run the batch file
Output is pretty nice
The windows installer libwkhtmltox-0.10.0_rc2.zip contains topdf and wkhtmltoimage