pr
Paginate text into deterministic pages with custom headers, footers, and page dimensions. Returns JSON or plain text output.
Instructions
Paginate text into deterministic pages with configurable headers, footers, and page dimensions. Read-only, no side effects. Returns JSON with paginated output by default; use --raw for plain text. Use for print-ready formatted output. Not for paragraph reflowing — use 'fmt'. Not for line wrapping — use 'fold'. See also 'fmt', 'fold'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | Text encoding. | utf-8 |
| header | No | Optional page header. | |
| max_lines | No | Maximum JSON lines to emit. | |
| page_length | No | Input lines per page. | |
| paths | No | Files to paginate, or '-' for stdin. Defaults to stdin. | |
| raw | No | Write paginated text without a JSON envelope. | |
| width | No | Maximum output line width. |