Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active March 20, 2019 12:26
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/1f508b5dbf05f99834e73f4badb593c2 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/1f508b5dbf05f99834e73f4badb593c2 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 with respect to image/html handler
ImageOptions options = new ImageOptions();
// 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