RenderOptionsPageNumbersToRender Property
The List of page numbers to render.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public List<int> PageNumbersToRender { get; set; }

Property Value

Type: ListInt32
The list of page numbers to render.
The following example demonstrates how to render custom page numbers.
ViewerConfig config = new ViewerConfig();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

HtmlOptions options = new HtmlOptions();
options.PageNumbersToRender = new List<int>() { 1, 2, 4 };

string guid = @"C:\storage\document.doc";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also