HtmlToPdfConverterConvertHtmlToFile Method

Converts a HTML string to PDF using a base URL to resolve external resources and writes the rendered PDF document into a file. A new instance of HtmlToPdfConverter must be created for each call to this method

Definition

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

Parameters

htmlString  String
The HTML string to convert to PDF
baseUrl  String
The base URL used to determine the full URL of the external resources like images, CSS, JavaScript and Web Font files referenced by relative URLs in HTML. It can be null if it is not needed
outFile  String
The full path of the file where to write the rendered PDF document

See Also