Created
October 19, 2017 10:58
-
-
Save GroupDocsGists/6ca66a234b8b72a770b16e3915f5f714 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // Setup GroupDocs.Viewer config | |
| ViewerConfig config = Utilities.GetConfigurations(); | |
| //Initialize viewer handler | |
| ViewerImageHandler viewerImageHandler = new ViewerImageHandler(viewerConfig); | |
| //Set encoding | |
| Encoding encoding = Encoding.GetEncoding("shift-jis"); | |
| //Set image options | |
| ImageOptions imageOptions = new ImageOptions(); | |
| imageOptions.EmailOptions.Encoding = encoding; | |
| //Get email document pages with encoding | |
| string emailDocumentGuid = "document.msg"; | |
| List<PageImage> emailDocumentPages = viewerImageHandler.GetPages(emailDocumentGuid, imageOptions); | |
| //Get email document info with encoding | |
| DocumentInfoOptions emailDocumentInfoOptions = new DocumentInfoOptions(emailDocumentGuid); | |
| emailDocumentInfoOptions.EmailDocumentInfoOptions.Encoding = encoding; | |
| DocumentInfoContainer emailDocumentInfoContainer = viewerImageHandler.GetDocumentInfo(emailDocumentInfoOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment