ImgConverterSaveImageFromHtmlStringToFile(String, ImageFormat, String, String) Method |
This method produces a image from the specified HTML string in the specified format
and saves the image in the specified disk file. The existing file will be
overwritten
Namespace: ExpertPdf.HtmlToPdfAssembly: ephtmltopdf (in ephtmltopdf.dll) Version: 21.1.0
Syntaxpublic void SaveImageFromHtmlStringToFile(
string htmlString,
ImageFormat format,
string outFile,
string urlBase
)
Public Sub SaveImageFromHtmlStringToFile (
htmlString As String,
format As ImageFormat,
outFile As String,
urlBase As String
)
Parameters
- htmlString String
- The HTML string to be converted to image
- format ImageFormat
- The output image format
- outFile String
- The output file full path
- urlBase String
- The URL base of the page
See Also