Created
October 19, 2017 10:58
-
-
Save GroupDocsGists/06809dc01b3b2ac8b8ee1041a324edd6 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
// 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.WordsOptions.Encoding = encoding; | |
//Get words document pages with encoding | |
string wordsDocumentGuid = "document.txt"; | |
List<PageImage> wordsDocumentPages = viewerImageHandler.GetPages(wordsDocumentGuid, imageOptions); | |
//Get words document info with encoding | |
DocumentInfoOptions wordsDocumentInfoOptions = new DocumentInfoOptions(wordsDocumentGuid); | |
wordsDocumentInfoOptions.WordsDocumentInfoOptions.Encoding = encoding; | |
DocumentInfoContainer wordsDocumentInfoContainer = viewerImageHandler.GetDocumentInfo(wordsDocumentInfoOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment