How to display page number - X of Y

I want to add a footer for every page, with page number of total
for example: “page 2 of 17”
How can I do it?



Currently, Doconut functions solely as a viewer and does not provide a feature to add content to each footer. The available option allows you to customize the Tooltip text that appears in the top-left corner of each page, as shown in the following image. The current restriction is the word has to be short.

The “Custom” word is static and can be set in the DocViewer object in the code below. The number next to the word is dynamic.

            var viewer = new DocViewer
                ToolTipPageText = "Custom ",