Posted on 2005-09-26 17:58:38-07 by nareval
HTML - malformed Headers using RTF
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; }
Direct Responses: 1071 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.