Added docx format to include/dokument_export.class.php

This commit is contained in:
Paolo
2025-10-27 11:51:52 +01:00
parent 4d109c05cb
commit dea9c38936
+6
View File
@@ -287,6 +287,7 @@ class dokument_export
{
case 'pdf':
case 'doc':
case 'docx':
$ret = 0;
$this->temp_filename = $this->temp_folder . '/out.' . $this->outputformat;
@@ -369,6 +370,11 @@ class dokument_export
header('Content-Disposition: attachment; filename="'.$this->filename.'.doc"');
header('Content-Length: '.$fsize);
break;
case 'docx':
header('Content-type: application/vnd.ms-word');
header('Content-Disposition: attachment; filename="'.$this->filename.'.docx"');
header('Content-Length: '.$fsize);
break;
case 'odt':
header('Content-type: application/vnd.oasis.opendocument.text');