DocumentStatistics
WordProcessingRootPackage.DocumentStatistics property
Gets the document statistics package.
public DocumentStatistics DocumentStatistics { get; }
Property Value
The document statistics package.
Remarks
Learn more
Examples
This code sample shows how to obtain simple text statistics for a WordProcessing document.
using (Metadata metadata = new Metadata(Constants.InputDocx))
{
var root = metadata.GetRootPackage<WordProcessingRootPackage>();
Console.WriteLine(root.DocumentStatistics.CharacterCount);
Console.WriteLine(root.DocumentStatistics.PageCount);
Console.WriteLine(root.DocumentStatistics.WordCount);
}
See Also
- class DocumentStatistics
- class WordProcessingRootPackage
- namespace GroupDocs.Metadata.Formats.Document
- assembly GroupDocs.Metadata