SelectPdf for .NET - Convert from Html Code to Image - C# / ASP.NET Sample This sample shows how to use SelectPdf html to image converter to convert raw html code to PNG, JPEG or BMP, also setting a few properties. Html Code: <html> <body> <br/> Hello World from selectpdf.com. <br/> <br/> <br/> <br/> Hello World from selectpdf.com. <br/> <br/> </body> </html> Base Url: Image Format: PNG JPEG BMP Web Page Width: px Web Page Height: px (leave empty to auto detect)