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.
Namespace: HiQPdf.NextAssembly: HiQPdf.Next (in HiQPdf.Next.dll) Version: 18.9.2
public PdfTextRenderInfo AddText(
int pageNumber,
PdfTextElement textElement
)
- pageNumber Int32
- The page number (1-based)
- 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. The bounding box is relative to the template