Created
October 19, 2017 10:58
-
-
Save GroupDocsGists/7bb90692d50f6728bae7536d00d473be 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.CellsOptions.Encoding = encoding; | |
//Get cells document pages with encoding | |
string cellsDocumentGuid = "document.csv"; | |
List<PageImage> cellsDocumentPages = viewerImageHandler.GetPages(cellsDocumentGuid, imageOptions);); | |
//Get cells document info with encoding | |
DocumentInfoOptions cellsDocumentInfoOptions = new DocumentInfoOptions(cellsDocumentGuid); | |
cellsDocumentInfoOptions.CellsDocumentInfoOptions.Encoding = encoding; | |
DocumentInfoContainer cellsDocumentInfoContainer = viewerImageHandler.GetDocumentInfo(cellsDocumentInfoOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment