We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to render html in image using Aspose.Imaging

Hello Team,

We are using Aspose.Imaging V21.4.0 to create image. Our requirement is to render HTML in image. We hare tried to render html using drawstring method of graphics class but it doesn’t show html effect just render html tag as it is. How can we achieve this? We have attached sample project for your reference.

RenderHTML.zip (4.9 MB)


Actually, Aspose.Imaging doesn’t support rendering of HTML content in image. The Draw string method doesn’t recognize the HTML tags. You may consider using Aspose.HTML for any option to export HTML to image and then add that in your source image using Aspose.Imaging. You may consult Aspose.HTML forum for any possible options in this regard.