html-to-jpeg

How to convert response stream to an image?

你说的曾经没有我的故事 提交于 2019-12-25 03:07:12
问题 Please note this link Render HTML as an Image is not helpful. In previously asked question answered said they don't get what I want to do exactly so here's is the full code also. I simply want that instead of a TABLES I rendered an image (of the content) on the page. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.IO; using System.Text; using System.Data; using System.Drawing; public partial class _Default : System.Web.UI

Rendering ASP.NET MVC ViewResult HTML as image without third party components

故事扮演 提交于 2019-12-12 08:58:13
问题 is there a way to render ViewResult or PartialViewResult as an image? I have tried to get ViewResult as string and I got a string containing html as it should be, but I need to render that html to image. If it is possible - with styles and images. I have an idea to get some browser output for this html on server and capture result to an image, but how it can be done in practice I don't know at this time. If you have any ideas, please, help. Please do not suggest any third party components.

Rendering ASP.NET MVC ViewResult HTML as image without third party components

冷暖自知 提交于 2019-12-04 13:48:14
is there a way to render ViewResult or PartialViewResult as an image? I have tried to get ViewResult as string and I got a string containing html as it should be, but I need to render that html to image. If it is possible - with styles and images. I have an idea to get some browser output for this html on server and capture result to an image, but how it can be done in practice I don't know at this time. If you have any ideas, please, help. Please do not suggest any third party components. Just tell if it is impossible to do by standart .NET classes. Thank you See How to render an image using