Last post Dec 05, 2008 11:11 AM by jgangwisch
Dec 05, 2008 10:36 AM|vijaycanaan|LINK
I was struggling for the process/code to convert html to image. Please suggest any tutorials for this. And also any code help greatly appreciated.
thanks and regards,
Dec 05, 2008 11:10 AM|pranaysharmadelhi123|LINK
You can do this with the help of either an ActiveX control:
Or you may go for the alternative HTML to PDF which is much more tested and working feature..
Some samples are:
PDF Metamorphosis .Net, it transforms HTML to PDF on fly.
thread http://forums.asp.net/t/956392.aspx too
The HTML to PDF library for .NET from
http://www.dotnet-reporting.com or the
HTML to PDF converter from
http://www.winnovative-software.com. It's pure .NET library, it doesn't use a printer driver. There is also a free html to pdf converter application built on top of this library. The conversion can be done with only a few lines of code:
PdfConverter pdfConverter = new PdfConverter();
pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4;
pdfConverter.PdfDocumentOptions.PdfPageOrientation = PDFPageOrientation.Portrait;
pdfConverter.PdfDocumentOptions.PdfCompressionLevel = PdfCompressionLevel.Normal;
pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = true;
pdfConverter.PdfDocumentOptions.ShowFooter = false;
pdfConverter.PdfDocumentOptions.ShowHeader = false;
pdfConverter.LicenseFilePath = Server.MapPath(@"~/Bin");
byte downloadBytes = pdfConverter.GetPdfFromUrlBytes(MyURL);
You may be able to follow from here.
Some html to pdf give you an option to print out the format as jpg/gif.
Hope you have a direction now!
Dec 05, 2008 11:11 AM|jgangwisch|LINK
here is a great link to make snapshots of urls and it even turns them into compressed thumbnails: