PdfEditorAddHtmlTemplate(Int32, Int32, Int32, Int32, PdfTemplateHorizontalAlign, PdfTemplateVerticalAlign, String) Method
Creates a HTML Template object based on URL from which the HTML content should be retrieved.
Specifies the horizontal and the vertical alignment of the template on the PDF page.
The alignment takes precedence over the X and Y coordinates when set to a value other than None.
The height of template is fixed. If AutoResizeHeight is true, the HTML content may be scaled down to fit the
specified height
Namespace: HiQPdf.ChromiumAssembly: HiQPdf.Chromium (in HiQPdf.Chromium.dll) Version: 17.0.0
public PdfHtmlTemplate AddHtmlTemplate(
int x,
int y,
int width,
int height,
PdfTemplateHorizontalAlign horizontalAlign,
PdfTemplateVerticalAlign verticalAlign,
string htmlSourceUrl
)
- 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
- height Int32
- The height of the PDF template
- horizontalAlign PdfTemplateHorizontalAlign
- The horizontal align of the PDF template
- verticalAlign PdfTemplateVerticalAlign
- The vertical align 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}
PdfHtmlTemplateThe created HTML template which can be further customized