Alex Rivera | Logout

Render HTML as an Image

Asked 2008-12-02T16:19:00.653
11

I'm generating a coupon based on dynamic input and a cropped image, and I'm displaying the coupon using ntml and css right now, the problem is, printing this has become an issue because of how backgrounds disappear when printing and other problems, so I think the best solution would be to be able to generate an image based on the html, or set up some kind of template that takes in strings and an image, and generates an image using the image fed in as a background and puts the coupon information on top.

Is there anything that does this already?

This is for an ASP.NET 3.5 C# website!

Thanks in advance.

edit: It'd be great if the output could be based on the HTML input, as the coupon is designed by manipulating the DOM using jQuery and dragging stuff around, it all works fine, it's just when it comes to the printing (to paper) it has z-indexing issues.

Edit
Report

1 Answer

0

There is a very powerful image creation library called GD which I often use with PHP.

I am led to believe there is a wrapper for this library that ASP programmers can use. Try this

answered 2008-12-02T16:21:36.763

Your Answer