IDocumentInfo Interface |
Namespace: GroupDocs.Watermark.Common
The IDocumentInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | FileType |
Gets the file format description.
|
![]() | IsEncrypted |
Gets a value indicating whether the document is encrypted and requires a password to open.
|
![]() | PageCount |
Gets the total page count.
|
![]() | Size |
Gets the document size in bytes.
|
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); }