Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Dec 12, 2013 2:05 am

I need convert html to image. Can you help me ?

honeypc
 
Posts: 2
Joined: Thu Dec 12, 2013 2:03 am

Thu Dec 12, 2013 2:32 am

Hello,

Thanks for your inquiry.
Please refer to the following method to convert html to image.
Code: Select all
 
Document doc = new Document();
doc.LoadFromFile(@"D:\test.html", Spire.Doc.FileFormat.Html, XHTMLValidationType.None);
Image image = doc.SaveToImages(0, ImageType.Bitmap); 
image.Save("Sample.png", ImageFormat.Png);

If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Dec 18, 2013 9:04 am

Hello,

Have you tested the code? Has your issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Dec 24, 2013 9:29 am

I have testing it. Code works well. Thanks

honeypc
 
Posts: 2
Joined: Thu Dec 12, 2013 2:03 am

Return to Spire.Doc