- the source code of this CLI tool is licensed under the MIT license.
- see librtf for the licensing of librtf (LGPL-2.1).
- note: yanxijian/LibRtf is no longer used.
CLI tool to extract text from RTF
text extractor for rtf documents
-i path : document to parse
-o path : text output (default=stdout)
- : use stdin for input
-r : raw text output (default=json)
| Property | Level | Type | Description |
|---|---|---|---|
| document | 0 | ||
| document.type | 0 | Text | |
| document.pages | 0 | Array | |
| document.pages[].paragraphs | 1 | Array | |
| document.pages[].paragraphs[].text | 2 | Text |