New to Telerik Document ProcessingStart a free 30-day trial

NumPages Field

Updated on Jul 15, 2026

This field inserts the total number of pages in the document.

Syntax

The following table shows the syntax of this field:

SYNTAX
{ NUMPAGES }

Inserting

You can insert this field through the InsertField() method of RadFlowDocumentEditor. The method accepts code as the first argument and result as the second argument.

Example 1 demonstrates how to insert a NumPages field.

Example 1: Insert PAGE and NUMPAGES fields to show the current page and total page count

C#
editor.InsertText("Page ");
editor.InsertField("PAGE", "");
editor.InsertText(" of ");
editor.InsertField("NUMPAGES", "");

After updating the field, the result is "Page 5 of 60" (see Updating Fields).

See Also

In this article
SyntaxInsertingSee Also
Not finding the help you need?
Contact Support