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
Namespace: HiQPdf.NextAssembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
public PdfTextRenderInfo AddText(
PdfTextElement textElement
)
- textElement PdfTextElement
- The text element to render into the template
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