环境: win7
1.安装perl
2.安装HTML-Formatter-2.16 https://metacpan.org/pod/HTML::FormatRTF
1.下载安装包以后 用 makefile安装 这个需要在PC段安装 MinGW以及dmake
2. 详见 https://metacpan.org/pod/HTML::FormatRTF的install instruction。
perl -MCPAN -e shell install HTML::FormatRTF
3.perl 代码
use
HTML::FormatRTF;
my
$out_file
=
"test.rtf"
;
open
(RTF,
">$out_file"
)
or
die
"Can't write-open $out_file: $!\nAborting"
;
print
RTF HTML::FormatRTF->format_file(
'test.html'
,
'fontname_headings'
=>
"Verdana"
,
);
close
(RTF);