|
I am using this module for the first time.
does anyone have an example of how to create/open an rtf document in a browser?
I have created a webpage.
My users want to be able to download the webpage as a RTF document.
I am getting a HTML error of malformed headers.
Here is all I've put into the code so far:
$rtf = $cgi->param('rtf') || 0;
if ($rtf)
{
ConnectDB($title,$dbname_sla);
$h = RTF::Writer->new_to_handle(*STDOUT );
$h->prolog( 'title' => "Greetings, hyoomon" );
$h->print ("{Stuff\n\t\tUmmm\n}");
$h->close;
exit;
}
|