// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET
//Get Configurations
ViewerConfig config = Utilities.GetConfigurations();
// Create html handler
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
// Guid implies that unique document name
string guid = DocumentName;
// Set CAD options to get the full list of Layouts
DocumentInfoOptions documentInfoOptions = new DocumentInfoOptions();
documentInfoOptions.CadOptions.RenderLayouts = true;
// Get DocumentInfoContainer and iterate through pages
DocumentInfoContainer documentInfoContainer = htmlHandler.GetDocumentInfo(guid, documentInfoOptions);
foreach (PageData page in documentInfoContainer.Pages)
{
Console.WriteLine("Page number: {0} - {1}", page.Number, page.Name);
}