Skip to main content
Display detailed statistics about a KDDB document including page count, node type distribution, tag breakdown, data object count, and exception count.

Usage

kdx document stats <file.kddb> [flags]

Flags

FlagDescriptionDefault
--page NShow stats for specific page only (1-based)All pages

Examples

Full Document Stats

kdx document stats report.kddb
{
  "totalPages": 15,
  "totalNodes": 8432,
  "nodeTypeCount": {
    "page": 15,
    "content-area": 15,
    "line": 1200,
    "word": 6500
  },
  "totalTags": 85,
  "totalFeatures": 9200,
  "totalDataObjects": 12,
  "tagCounts": {
    "invoice/amount": 5,
    "invoice/date": 3
  }
}

Per-Page Stats

kdx document stats report.kddb --page 3
{
  "page": 3,
  "totalNodes": 542,
  "nodeTypeCount": {
    "page": 1,
    "content-area": 1,
    "line": 80,
    "word": 460
  }
}
Use --page to identify which pages have the most content or complexity.