HiQPdf Documentation

HtmlToPdfConvertHtmlToPdfDocument Method

HiQPdf Client for .NET Core
Converts a HTML code and produces a PdfDocument object that can be further modified and then saved

Namespace:  HiQPdfClient
Assembly:  HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax

public PdfDocument ConvertHtmlToPdfDocument(
	string html,
	string baseUrl
)

Parameters

html
Type: SystemString
The HTML code to convert
baseUrl
Type: SystemString
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

Return Value

Type: PdfDocument
The PdfDocument object containing the conversion result
See Also

Reference