HtmlToPdfConvertHtmlToFile Method

Converts a HTML code to a PDF file. A new instance of HtmlToPdf must be created for each call to this method

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.0.0
C#
public void ConvertHtmlToFile(
	string htmlString,
	string baseUrl,
	string outFile
)

Parameters

htmlString  String
The HTML code to convert
baseUrl  String
The base URL that can be used to resolve the relative URLs found in the HTML code. It can be null if there are not relative URLs in the HTML code
outFile  String
The output PDF file

See Also