Output the full readable text content of a KDDB document, page by page with markers. Supports page range filtering and node-specific text extraction.
Usage
kdx document text <file.kddb> [flags]
Flags
| Flag | Description | Default |
|---|
--pages start:end | Page range (1-based, inclusive) | All pages |
--node-id N | Extract text from a specific node subtree | |
Examples
Full Document Text
kdx document text report.kddb
--- Page 1 ---
ANNUAL REPORT
Fiscal Year 2024
Prepared by Finance Department
--- Page 2 ---
Table of Contents
Executive Summary .......... 3
Financial Overview ......... 5
Page Range
kdx document text report.kddb --pages 5:10
Node Subtree Text
kdx document text report.kddb --node-id 42
Use --pages to extract specific sections without reading the entire document. Combine with shell tools like wc -w to count words per page.