Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created March 20, 2019 13:19
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/37930f2cdad27d3c3b8b247e867bc83b to your computer and use it in GitHub Desktop.
Save GroupDocsGists/37930f2cdad27d3c3b8b247e867bc83b to your computer and use it in GitHub Desktop.
// Setup GroupDocs.Viewer config
ViewerConfig viewerConfig = new ViewerConfig();
viewerConfig.StoragePath = @"Absolute_Storage_Path";
// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(viewerConfig);
//Archive name with extension
string guid = "sample.zip";
// Create pdf options with specified folder name
PdfFileOptions options = new PdfFileOptions();
options.ArchiveOptions.FolderName = "FolderName";
// Get pdf document
FileContainer fileContainer = imageHandler.GetPdfFile(guid, options);
// Access result PDF document using fileContainer.Stream property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment