Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active January 11, 2018 13:37
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/a1d96080731d1d3f4c8e03886c8550e4 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/a1d96080731d1d3f4c8e03886c8550e4 to your computer and use it in GitHub Desktop.
// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET
// Setup GroupDocs.Viewer config
ViewerConfig config = Utilities.GetConfigurations();
// Create image or html handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
// Get supported document formats
DocumentFormatsContainer documentFormatsContainer = imageHandler.GetSupportedDocumentFormats();
Dictionary<string, string> supportedDocumentFormats = documentFormatsContainer.SupportedDocumentFormats;
foreach (KeyValuePair<string, string> supportedDocumentFormat in supportedDocumentFormats)
{
Console.WriteLine(string.Format("Extension: '{0}'; Document format: '{1}'", supportedDocumentFormat.Key, supportedDocumentFormat.Value));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment