1.

Solve : save file in rtf format?

Answer»

how to save file in rich text format (.rtf ) in linux like we do in windows with the HELP of wordpad ? please tell me any SOFTWARE or trick to save file in rtf format in linux ?you MIGHT want to CONSIDER LEARNING to program in a scripting language such as Perl or Python that comes with Rich text libraries for you to do RTF processing. eg in Perl, we can use RTF::Writer
Code: [Select]use RTF::Writer;
local $/=undef; #slurp whole file
my $rtf = RTF::Writer->new_to_file("test.rtf");
open(FH,"<","file") or die "Cannot open file:$!\n";
$string = <FH>;
close(FH);
$rtf->paragraph($string);
$rtf->close;
Just use OpenOffice which you can download for FREE from www.openoffice.org it allows you to read and write most of the Unix, Microsoft and MAC formats.



Discussion

No Comment Found