This method produces a image from the specified HTML stream in the specified format using a base URL to resolve the external resources and saves the image in the specified disk file. The existing file will be overwritten

Namespace: EvoPdf
Assembly: evohtmltopdf (in evohtmltopdf.dll) Version: 4.12.0.0

Syntax

C#
public void SaveImageFromHtmlStreamToFile(
	Stream htmlStream,
	Encoding streamEncoding,
	ImageFormat format,
	string outFile,
	string urlBase
)
Visual Basic
Public Sub SaveImageFromHtmlStreamToFile ( 
	htmlStream As Stream,
	streamEncoding As Encoding,
	format As ImageFormat,
	outFile As String,
	urlBase As String
)
Visual C++
public:
void SaveImageFromHtmlStreamToFile(
	Stream^ htmlStream, 
	Encoding^ streamEncoding, 
	ImageFormat^ format, 
	String^ outFile, 
	String^ urlBase
)

Parameters

htmlStream
Type: System.IO..::..Stream
The HTML stream
streamEncoding
Type: System.Text..::..Encoding
The encoding of the HTML stream
format
Type: System.Drawing.Imaging..::..ImageFormat
The output image format
outFile
Type: System..::..String
The output file full path
urlBase
Type: System..::..String
The URL base of the page

See Also