Converts HTML/ASPX file or url to Image as byte array

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 5.1.2.13

Syntax

      
 C#  Visual Basic 
public byte[] ConvertHtmlFileToImageStream(
	string inputHtmlFile,
	PdfVision..::.eImageFormat imageFormat
)
Public Function ConvertHtmlFileToImageStream ( _
	inputHtmlFile As String, _
	imageFormat As PdfVision..::.eImageFormat _
) As Byte()

Parameters

inputHtmlFile
String
Path or url to HTML/ASPX page
imageFormat
PdfVision..::.eImageFormat
Allows to set PdfVision..::.eImageFormat for resulting image

Return Value

byte array containing resulting image - in case of converting successfully
null - in case of converting failed

Remarks



See Also