RenderOptionsCountPagesToRender Property
The number of pages to render.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.5
public int CountPagesToRender { get; set; }

Property Value

Type: Int32
The number of pages to render.
Will be ignored if page numbers to render are set.
The following example demonstrates how to render three consecutive pages, starting from the page number two.
ViewerConfig config = new ViewerConfig();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

HtmlOptions options = new HtmlOptions();
options.PageNumber = 2;
options.CountPagesToRender = 3;

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