PdfEditorAddHtmlTemplate(Int32, Int32, Int32, String) Method

Creates a HTML Template object based on the HTML string and an optional base URL. The height of template is auto-resized. To create a template with fixed height use the method with height parameter

Definition

Namespace: HiQPdf.Chromium
Assembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.0.0
C#
public PdfHtmlTemplate AddHtmlTemplate(
	int x,
	int y,
	int width,
	string htmlSourceUrl
)

Parameters

x  Int32
The X position of the template in the PDF pages relative to the top left of the page
y  Int32
The Y position of the template in the PDF pages relative to the top left of the page
width  Int32
The width of the PDF template
htmlSourceUrl  String
The URL from which the HTML content should be retrieved. The HTML content can contain template variable like {page_number} or {total_pages}

Return Value

PdfHtmlTemplate
The created HTML template which can be further customized

See Also