GetDocumentInfo
Watermarker.GetDocumentInfo method
Gets the information about the format of the loaded document.
public IDocumentInfo GetDocumentInfo()
Return Value
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.
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
- interface IDocumentInfo
- class Watermarker
- namespace GroupDocs.Watermark
- assembly GroupDocs.Watermark