PdfEditorAddText Method

Adds a text element to the current PDF page. If the text exceeds the current page, it will continue on subsequent pages based on element settings. Supports placeholder variables such as {page_number} and {total_pages}, which are replaced with their actual values in the rendered PDF.

Definition

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

Parameters

pageNumber  Int32
The page number (1-based)
textElement  PdfTextElement
The text element to render into the PDF document

Return Value

PdfTextRenderInfo
A PdfTextRenderInfo object containing information about the pages and bounding boxes where the text was rendered. The bounding box is relative to the template

See Also