PdfDocumentAddHtmlTemplate(Int32, Int32, Int32, Int32, String) Method
Creates a HTML Template object based on URL from which the HTML content should be retrieved.
The template has the given height. When AutoSizeContentHeight is true, the HTML content may be scaled down to fit
the given height
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
public PdfHtmlTemplate AddHtmlTemplate(
int x,
int y,
int width,
int height,
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
- 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