Click or drag to resize

ImgConverterSaveImageFromHtmlStreamToFile Method (Stream, Encoding, ImageFormat, 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
)

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
See Also