Re: Turning text into doc or rtf

Tim Chase <[email protected]>
Newsgroups gmane.linux.redhat.blinux.general
Message-ID <[email protected]>
On February  3, 2016, John J. Boyer wrote:
> I have a need to submit text documents created with nano in doc or
> rtf format. Is there a utility that will do this? Of course I can
> always format documents in html. Is there a utility that will
> convert html to doc or rtf?

Check out pandoc, the Swiss-army knife of document conversion:

  $ pandoc -o output.docx input.html
  $ pandoc -o output.rtf input.html

It takes multiple input formats as well, so if you're not like me (I
prefer to write raw HTML) and you prefer to write in Markdown or some
other markup syntax, you can check those out as well:

  $ pandoc -o output.docx -f markdown input.txt

The whole list of known formats are in the man-page under the "-f"
option.

It should be readily available in most repos.

-tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.