GetDocumentInfo
Leave feedback
On this page
Gets the information about the format of the loaded document.
public IDocumentInfo GetDocumentInfo()
The IDocumentInfo instance that contains detected information.
Learn more about getting the document information Get document info.
Get information about a document of any supported type.
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);
}
- interface IDocumentInfo
- class Watermarker
- namespace GroupDocs.Watermark
- assembly GroupDocs.Watermark
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.