HtmlToPdfStaticRenderHtmlAsPdf Method (String, String, PdfPrintOptions, String)

Static version of the RenderHtmlAsPdf(String, String, String) function. Renders any Html strings into a PDF document.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public static PdfDocument StaticRenderHtmlAsPdf(
	string Html,
	string BaseUrlOrPath,
	PdfPrintOptions PrintOptions = null,
	string Proxy = null


Type: SystemString
Html to be turned into a PDF.
Type: SystemString
Setting the BaseUrlOrPath property gives the Html a relative for content links such as hyper-links, images, CSS and JavaScript files.
PrintOptions (Optional)
Type: IronPdfPdfPrintOptions
Instance of PdfPrintOptions. Optional print options and settings.
Proxy (Optional)
Type: SystemString
Specifies an Http proxy server. Use the pattern: http(s)://user-name:password@host:port/

Return Value

Type: PdfDocument
A PdfDocument
See Also
Install with Nuget