|
This works in my cgi script:
==================================================
my $file="/tmp/a_document.$$.sxw";
my $content = ooDocument(file=> $file,create => 'text',readable_XML=>'on' );
# Add stuff #
$content->save();
print "Content-type: application/vnd.oasis.opendocument.text\n\n";
print `cat $file`;
==================================================
If you are working on a windows system, you may need to set up a file type. |