Take the 2-minute tour ×

I have a workflow model. Internet Explorer doesn't support some features required for model editing functionality (and regular user doesn't need it).

I want a read-only preview of my model. Is it possible to server-side render my HTML to an image?

I would prefer offline solution to allow our system run in corporate LAN without access to internet.

share|improve this question
I am using Debian –  jonny Apr 16 '10 at 12:52
My company was looking for a similar thing (HTML to PDF, actually) and couldn't find anything convenient and prepackaged. We had an idea to embed a stripped-down web browser and basically tell it to print the webpage in question. Ultimately, though, we decided it wasn't worth it for our (modest) needs. –  fennec Apr 16 '10 at 18:27
@fennec, you should definetly evaluate code.google.com/p/wkhtmltopdf –  jonny Nov 25 '10 at 16:01
on behalf of our product management people, thanks for your pointer. :) –  fennec Nov 30 '10 at 21:36
add comment

closed as not constructive by Will May 31 '13 at 14:41


3 Answers

up vote 10 down vote accepted

Here are 'local' solutions:

  • wkhtmltoimage

    does exactly its name says

  • PhantomJS

    more advanced capabilities, like evaluate any js code in page context before rendering it to image/pdf

share|improve this answer
add comment

You can try using a java library called flyingsaucer (aka xhtmlrenderer). It has worked very well for me in the past.

Homepage: http://code.google.com/p/flying-saucer//

FAQ for generating an image: http://pigeonholdings.com/projects/flyingsaucer/R8/doc/guide/users-guide-R8.html#xil_29

share|improve this answer
add comment

If you are using windows, you can maybe use a tool like ConvertHTML (http://www.converthtmltoimage.com/?gclid=CL355ejhiqECFQGF3god-wl1Pw).
Or use a web service like WebShotsPro (http://www.webshotspro.com/) or Thumbalizr.

share|improve this answer
add comment
