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
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
public PdfTextRenderInfo AddText(
int pageNumber,
PdfTextElement textElement
)
- pageNumber Int32
- The 1-based number of the page where the text starts
- textElement PdfTextElement
- The text element to render into the PDF document
PdfTextRenderInfo
A PdfTextRenderInfo object describing the pages and the rectangles where the text was rendered, relative
to the top left corner of each page