// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
// File guid
string guid = DocumentName;
// Set html options to show grid lines
HtmlOptions options = new HtmlOptions();
//do same while using ImageOptions
options.CellsOptions.ShowGridLines = true;
List<PageHtml> pages = htmlHandler.GetPages(guid, options);