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.
相关问题
- How to specify argument attributes in CFscript? (C
- Coldfusion date conversion: “2013-11-15T06:11:57.8
- ColdFusion Java Method Not Found Exception
- Coldfusion - How to parse and segment out data fro
- ColdFusion XLS “Export” and Character Encoding
相关文章
- How do I prevent SQL injection with ColdFusion
- c# saving very large bitmaps as jpegs (or any othe
- What share of Android devices benefits from Libjpe
- How to scope closure's variables in CF10?
- What Notable Differences are there between Railo,
- Restarting ColdFusion mail queue
- Does using image sprites make sense in HTTP/2?
- How to pass additional data to restful API Basic a
Might not be exactly what you're after but cfsilence has a post from the CF8 days that might work:
Initial Post: http://cfsilence.com/blog/client/index.cfm/2008/4/4/Converting-HTML-To-An-Image-With-CFJava
Follow Up: http://cfsilence.com/blog/client/index.cfm/2008/4/5/More-Thoughts-on-HTML-To-Image-Plus-Code
Might get you started ... hope it's helpful!
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
check out
<cfdocument format="PDF">
and<cfpdf action="thumbnail">