FileDescriptionSize Property
The size of the document in bytes.

Namespace: GroupDocs.Viewer.Domain
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
public long Size { get; set; }

Property Value

Type: Int64
The size.
The following example demonstrates how to get the size of the document in bytes.
ViewerConfig config = new ViewerConfig();
config.StoragePath = @"C:\storage";

ViewerImageHandler imageHandler = new ViewerImageHandler(config);
FileListContainer container = imageHandler.GetFileList();

foreach (FileDescription fileDescription in container.Files)
    if (!fileDescription.IsDirectory) 
       Console.WriteLine("File size is {0}", fileDescription.Size);
See Also