Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created October 19, 2017 10:58
Show Gist options
  • Select an option

  • Save GroupDocsGists/6ca66a234b8b72a770b16e3915f5f714 to your computer and use it in GitHub Desktop.

Select an option

Save GroupDocsGists/6ca66a234b8b72a770b16e3915f5f714 to your computer and use it in GitHub Desktop.
// 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