Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/ec8f73ac96057305ee175ffa448490af to your computer and use it in GitHub Desktop.
Save GroupDocsGists/ec8f73ac96057305ee175ffa448490af to your computer and use it in GitHub Desktop.
// Setup GroupDocs.Viewer config
ViewerConfig viewerConfig = new ViewerConfig();
viewerConfig.StoragePath = @"Absolute_Storage_Path";
// Create image or html handler
ViewerImageHandler imageHandler = new ViewerImageHandler(viewerConfig);
//Archive name with extension
string guid = "sample.zip";
// set options to render the list of items from certain folder.
ImageOptions options = new ImageOptions();
options.ArchiveOptions.FolderName = "FirstLevelFolder/SecondLevelFolder";
// Get rendered pages
List<PageImage> pages = imageHandler.GetPages(guid, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment