DocumentStatistics
Leave feedback
On this page
Gets the document statistics package.
public DocumentStatistics DocumentStatistics { get; }
The document statistics package.
Learn more
This code sample demonstrates how to obtain the text statistics for a PDF document.
using (Metadata metadata = new Metadata(Constants.InputPdf))
{
var root = metadata.GetRootPackage<PdfRootPackage>();
Console.WriteLine(root.DocumentStatistics.CharacterCount);
Console.WriteLine(root.DocumentStatistics.PageCount);
Console.WriteLine(root.DocumentStatistics.WordCount);
}
- class DocumentStatistics
- class PdfRootPackage
- namespace GroupDocs.Metadata.Formats.Document
- assembly GroupDocs.Metadata
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.