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.
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.
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.
1
0
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.
in.rtf
STDIN
out.html
STDOUT
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
To install RTF::HTMLConverter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RTF::HTMLConverter
CPAN shell
perl -MCPAN -e shell install RTF::HTMLConverter
For more information on module installation, please visit the detailed CPAN module installation guide.