IDocumentInfo Interface
Defines the methods that are required for getting the basic document information.

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

The IDocumentInfo type exposes the following members.

Properties
  NameDescription
Public propertyFileType
Gets the file format description.
Public propertyIsEncrypted
Gets a value indicating whether the document is encrypted and requires a password to open.
Public propertyPageCount
Gets the total page count.
Public propertySize
Gets the document size in bytes.
Remarks
Examples
The following example demonstrates how to retrieve the general document information using IDocumentInfo.
C#
using (Watermarker watermarker = new Watermarker("D:\\input.pdf"))
{
    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