WatermarkerGetDocumentInfo Method
Gets the information about the format of the loaded document.

Namespace: GroupDocs.Watermark
Assembly: GroupDocs.Watermark (in GroupDocs.Watermark.dll) Version: 20.7.0
Syntax
public IDocumentInfo GetDocumentInfo()

Return Value

Type: IDocumentInfo
The IDocumentInfo instance that contains detected information.
Remarks
Learn more about getting the document information Get document info.
Examples
Get information about a document of any supported type.
C#
using (Watermarker watermarker = new Watermarker(@"D:\test.ppt"))
{
    IDocumentInfo docInfo = watermarker.GetDocumentInfo();
    Console.WriteLine("Document size: {0}", docInfo.Size);
    Console.WriteLine("Document format: {0}", docInfo.FileType.FileFormat);
    Console.WriteLine("Document contains {0} pages", docInfo.PageCount);
}
See Also