
rtf2html.pl - Simple RTF to HTML converter

rtf2html.pl [options] [in.rtf [out.html]]

Print usage information and exit.
Print manual page and exit.
DOM implementation name.
Default: XML::GDOME.
Do not process images.
Directory where to store images if any. Default: current directory.
Image url prefix.
XML::GDOME specific options:
The encoding of resulted HTML page.
Default: UTF-8.
Can be 1 or 0.
If the value specified is 1 the resulted HTML tags will be indented to make the code more readable.
If the value specified is 0 there will be no indentation.
Default: 1.

This is a simple RTF to HTML converter.
It reads RTF from in.rtf (or STDIN by default) and writes HTML to out.html (or STDOUT).
If RTF contains images,
they will be stored in directory specified by imagedir (or d) option and their URLs in HTML will be started with whatever specified by imageuri (or u) option.

rtf2html.pl < in.rtf > out.html
rtf2html.pl -n -e 'KOI8-R' in.html
rtf2html.pl -d /opt/www/images \
-u http://www.somewhere.net/images \
-dom 'XML::DOM' in.rtf /opt/www/out.html