Peter Sergeant > RTF-Reader > RTF::Reader::Interface::asText

Download:
RTF-Reader-0.01_2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

TITLE ^

RTF::Reader::Interface::asText - Simple RTF to Text conversion

DESCRIPTION ^

Stable and very simple interface to RTF::Reader for simple RTF to Text conversion

JUSTIFICATION ^

RTF::Reader is no-where near stable, but, it's good enough for use in some applications. Rather than being stuck with the current interface because people have started using it, the RTF::Reader::Interface:: modules provide a stable interface people can use, regardless of what's going on in the background.

The 'asX' modules provide very simple and dirty RTF conversion - the idea being that if you want to do something very simply, it really shouldn't involve a lot of setup.

SYNOPSIS ^

 use RTF::Reader::Interface::asText;
 
 my $text = RTF::Reader::Interface::asText::convert( string => '{\rtf1}'  );
 my $text = RTF::Reader::Interface::asText::convert( file   => \*STDIN    );
 my $text = RTF::Reader::Interface::asText::convert( file   => 'lala.rtf' );

SUBROUTINES ^

convert

Accepts an input filehandle, file, or string. See the SYNOPSIS above for examples.

Returns a plain-text rendering of the text.

AUTHOR ^

Peter Sergeant - pete@clueball.com

LICENSE ^

As Perl.