|
NAMERTF::HTML::Converter - Perl extension for converting RTF into HTML VERSIONversion 1.12 DESCRIPTIONPerl extension for converting RTF into HTML SYNOPSIS use strict;
use RTF::HTML::Converter;
my $object = RTF::HTML::Converter->new(
output => \*STDOUT
);
$object->parse_stream( \*RTF_FILE );
OR use strict;
use RTF::HTML::Converter;
my $object = RTF::HTML::Converter->new(
output => \$string
);
$object->parse_string( $rtf_data );
METHODSnew()Constructor method. Currently takes one named parameter, "output", which can either be a reference to a filehandle, or a reference to a string. This is where our HTML will end up. parse_stream()Read RTF in from a filehandle, and start processing it. Pass me a reference to a filehandle. parse_string()Read RTF in from a string, and start processing it. Pass me a string. JUST SO YOU KNOWYou can mix-and-match your output and input methods - nothing to stop you outputting to a string when you've read from a filehandle... AUTHORPeter Sergeant "pete@clueball.com", originally by Philippe Verdret COPYRIGHTCopyright 2004 Pete Sergeant. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. CREDITSThis work was carried out under a grant generously provided by The Perl Foundation - give them money!
|