ViewerConfigStoragePath Property
The path to the documents storage directory.

Namespace: GroupDocs.Viewer.Config
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public string StoragePath { get; set; }

Property Value

Type: String
The storage path.
Storage path acts as a base location in the file system, for the documents rendering. When the full path to the document is not provided, API assumes that the document is located in the storage directory. By default, cache files are stored in the folder, inside the storage directory.
The following example demonstrates how to set the storage path and render document located inside the storage directory.
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";

ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = "document.docx";
List<PageImage> pages = imageHandler.GetPages(guid);
See Also