DocumentStatistics

PdfRootPackage.DocumentStatistics property

Gets the document statistics package.

public DocumentStatistics DocumentStatistics { get; }

Property Value

The document statistics package.

Remarks

Learn more

Examples

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);
}

See Also