Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created October 19, 2017 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/7bb90692d50f6728bae7536d00d473be to your computer and use it in GitHub Desktop.
Save GroupDocsGists/7bb90692d50f6728bae7536d00d473be 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.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