kdx document print and kdx document select commands help you understand and navigate the hierarchical structure of KDDB documents.
Print Command
Pretty print the document structure as an ASCII tree.Flags
Basic Usage
Limit Depth
Control how deep into the tree to display:Print Specific Page
Focus on a single page:Show Features
Display node features like bounding boxes and tags:Select Command
Query nodes by type using selector syntax.Selector Syntax
Currently supports type-based selectors:Examples
Output Columns
Output Formats
Both commands support the global-o flag:
Common Node Types
Documents typically contain these node types:Use Cases
Document Analysis
Understand document structure before processing:Debugging Extraction
Investigate why extraction isn’t finding expected content:Content Location
Find where specific content appears:Structure Validation
Verify document structure is as expected:Batch Analysis
Analyze structure across multiple documents:Tips
Content shown in the tree view is truncated to 60 characters. Use
select with JSON output for full content.Related
Query Commands
Search and retrieve with grep and lines
SDK: Content Nodes
Work with content nodes programmatically
SDK: Selectors
Advanced selector syntax
Document Overview
Back to document commands overview
