This article explains how to detect document file type, size and calculate pages count when annotate documents or images with GroupDocs.Comparison....for the file from local disk C# using System ; using GroupDocs...info for the file from stream C# using System ; using GroupDocs...