Click or drag to resize

ImgConverterSaveImageFromHtmlStreamToFile Method (Stream, Encoding, ImageFormat, String, String)

This method produces a image from the specified HTML stream in the specified format and saves the image in the specified disk file. The existing file will be overwritten

Namespace:  ExpertPdf.HtmlToPdf
Assembly:  ephtmltopdf (in ephtmltopdf.dll) Version: 17.0.0
Syntax
public void SaveImageFromHtmlStreamToFile(
	Stream htmlStream,
	Encoding streamEncoding,
	ImageFormat format,
	string outFile,
	string urlBase
)

Parameters

htmlStream
Type: System.IOStream
The HTML stream
streamEncoding
Type: System.TextEncoding
The encoding of the HTML stream
format
Type: System.Drawing.ImagingImageFormat
The output image format
outFile
Type: SystemString
The output file full path
urlBase
Type: SystemString
The URL base of the page
See Also