PdfTemplateAddText Method

Adds a text element to the PDF template. Supports placeholder variables such as {page_number} and {total_pages}, which are replaced with their actual values in the rendered PDF. When placeholder variables are used, the text element is rendered when the document is saved

Definition

Namespace: HiQPdf.Next
Assembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
C#
public PdfTextRenderInfo AddText(
	PdfTextElement textElement
)

Parameters

textElement  PdfTextElement
The text element to render into the template

Return Value

PdfTextRenderInfo
A PdfTextRenderInfo object describing the rendered bounding boxes for text rendered. If the text contains placeholder variables, the returned object is initially empty because the text is rendered later when the document is saved. For text rendered inside a PdfTemplate, all bounding boxes and callbacks are always relative to the template coordinate space, including text containing placeholder variables

See Also