- the source code of this CLI tool is licensed under the MIT license.
- see librtf for the licensing of librtf (LGPL-2.1).
- note:
librtf
is no longer used.
CLI tool to extract text from RTF
acknowledgements: https://github.com/yanxijian/LibRtf
rtf-parser -i example.rtf -o example.json
-i path : document to parse
-o path : text output (default=stdout)
- : use stdin for input
-r : raw text output (default=json)
{
"type: "rtf",
"text": "body"
}