New to Telerik Document ProcessingStart a free 30-day trial

NumPages Field

Updated on Feb 19, 2026

This field insers the total nuber of pages in the document.

Syntax

The syntax of this field looks like this:

SYNTAX
{ NUMPAGES }

Inserting

Inserting this field is easily achieved through the RadFlowDocumentEditor's InsertField() method. It accepts code as first argument and result as second argument.

Example 1 demonstrates how you can insert a NumPages field.

Example 1: Insert NumPages field

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

After updating the field the result would be "Page 5 of 60" (check Updating Fields).

See Also

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