Last active
January 11, 2018 13:37
-
-
Save GroupDocsGists/a1d96080731d1d3f4c8e03886c8550e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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