// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();
config.LocalesPath = @"D:\Locale";
CultureInfo cultureInfo = new CultureInfo("fr-FR");
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config, cultureInfo);
// File guid
string guid = DocumentName;
// Set html options to show grid lines
HtmlOptions options = new HtmlOptions();
List<PageHtml> pages = htmlHandler.GetPages(guid, options);