20

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.

3
  • 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. Commented Apr 16, 2010 at 18:27
  • @fennec, you should definetly evaluate code.google.com/p/wkhtmltopdf Commented Nov 25, 2010 at 16:01
  • on behalf of our product management people, thanks for your pointer. :) Commented Nov 30, 2010 at 21:36

2 Answers 2

16

Here are 'local' solutions:

Sign up to request clarification or add additional context in comments.

4 Comments

The wkhtmltoimage link above takes you to wkhtmltopdf, which doesn't appear to have the option to convert to pn. Only pdf and ps formats: wkhtmltopdf.org/usage/wkhtmltopdf.txt. Help?
@spadeworkers, just download the package, it contains both wkhtmltoimage and wkhtmltopdf binaries
wkhtmltoimage is in C language.. i need such thing in php. any help pleaseee??
@saadk you can use exec or system command in php after installing wkhtmltoimage in server like system('webkit2png http://www.google.com')
1

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.