Hi Anatoliy,
Yes, We provide support for converting html web page to PDF file. While converting HTML web page to PDF, it converts the web page into image [Bitmap image or metafile] using HtmlConverter and renders that image into PDF.
* Bitmap image will have low resolution but the conversion will be fast. Metafile will be slow, but will have high resolution and text in it is readable.
* The HTMLConverter uses the MSHTML rendering library to render HTML documents. The MSHTML library is the engine that is used to drive the Internet Explorer.
Steps to convert the HTML page to PDF
--------------------------------------
Using HtmlConverter, we can convert as follows:
i) The HTML page is first converted to a bitmap image or a Metafile.
Image bmp = html.ConvertToImage("Sample.html"),ImageType.Bitmap)
ii) Then the image is drawn into the PDF document.
doc.LastPage.Graphics.DrawImage(PointF.Empty, bmp, dest, properties);
Samples:
--------
You can find the sample regarding this at the following url:
C:\Program Files\Syncfusion\Essential Studio\4.3.0.30\Windows\Pdf.Windows\Samples\Grid Model\HTMLToPDF
Herewith I have attached the sample for your reference:
http://websamples.syncfusion.com/samples/PDF.Windows/P33790//main.htmHere is a PDF generated with bitmap option:
HTML to PDF-BMP.zipKindly let me know if you have any other questions.
Thanks,
Melba