PdfEditorAddText Method

Adds a text element to a page of the document, at the position given by the element relative to the top left corner of the page. When the ContinueOnNextPage property of the element is true, the text that does not fit on the page continues on the following pages of the document, or on pages inserted after the given page when InsertContinuationPages is true, between the ContinuationTopMargin and ContinuationBottomMargin margins of the pages. The text can contain the {page_number} and {total_pages} placeholders, replaced with the number of the given page and the page count of the document; a text with placeholders is rendered on the given page only

Definition

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

Parameters

pageNumber  Int32
The 1-based number of the page where the text starts
textElement  PdfTextElement
The text element to render into the PDF document

Return Value

PdfTextRenderInfo
A PdfTextRenderInfo object describing the pages and the rectangles where the text was rendered, relative to the top left corner of each page

See Also