PdfDocumentAddText Method
Adds a text element to the current PDF page. If the text exceeds the current page, it can continue
on subsequent pages depending on the value of the
ContinueOnNextPage property.
Supports placeholder variables such as {page_number} and {total_pages}, which are replaced with
their actual values in the rendered PDF. When {total_pages} is used, the text element is rendered
after the document is closed. Therefore, the
PdfDocument instance cannot be used inside
the
OnPageRendered callback.
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 PDF document
PdfTextRenderInfo
A PdfTextRenderInfo object containing information about the pages and bounding boxes
where the text was rendered