RenderOptionsCountPagesToRender Property
The number of pages to render.

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

Property Value

Type: Int32
The number of pages to render.
Remarks
Will be ignored if page numbers to render are set.
Examples
The following example demonstrates how to render three consecutive pages, starting from the page number two.
C#
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