HtmlToPdfConvertHtmlToFile Method
Converts a HTML code to a PDF file.
A new instance of HtmlToPdf must be created for each call to this method
Namespace: HiQPdf.NextAssembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.84.0
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.
To load local file system resources referenced with a file:// URL or an absolute disk path, set this to "file:///"
- outFile String
- The output PDF file