// 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 image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Guid implies that unique document name
string guid = DocumentName;
//Initialize ImageOptions Object
ImageOptions options = new ImageOptions();
// Set password if document is password protected.
if (!String.IsNullOrEmpty(DocumentPassword))
options.Password = DocumentPassword;
// Set one page per sheet option to false for Multiple pages per sheet in Excel documents, default value of this option is true
options.CellsOptions.OnePagePerSheet = false;
//Get document pages in image form
List<PageImage> Images = imageHandler.GetPages(guid, options);
foreach (PageImage image in Images)
{
//Save each image at disk
Utilities.SaveAsImage(image.PageNumber + "_" + DocumentName, image.Stream);
}