Using NumberingFieldsProvider
The NumberingFieldsProvider is used for calculating the layout of the document. This is necessary when updating the fields values. For example to calculate the total number of pages.
Requirements
To use the default implementation of the NumberingFieldsProvider you need to reference the Telerik.Documents.Flow.FormatProviders.Pdf assembly.
Setting the default implementation
The default provider can be set with the following code:
Example 1: Register the default NumberingFieldsProvider
Telerik.Windows.Documents.Flow.Extensibility.FlowExtensibilityManager.NumberingFieldsProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.NumberingFieldsProvider();
Using the RegisterNumberingStyleConverter
This method allows you to use a custom numbering style converter.
Example 2: Register custom NumberingStyleConverter
Telerik.Windows.Documents.Flow.FormatProviders.Pdf.NumberingFieldsProvider numberingFieldsProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.NumberingFieldsProvider();
numberingFieldsProvider.RegisterNumberingStyleConverter(NumberingStyle.ChineseCounting, new NumberingStyleConverter());