|
|
@@ -285,7 +285,7 @@ echo $file."\n";
|
|
|
$fileType = getFileType($file);
|
|
|
$pathFile = preg_match("/^files/", $file)? UPLOAD_PATH.$file : $file;
|
|
|
$path = dirname($pathFile).'/';
|
|
|
- $filename = str_replace('.'.$fileType,'.pdf', $file);
|
|
|
+ $filename = str_replace('.'.$fileType,'.'.$type, $file);
|
|
|
switch($type){
|
|
|
case 'pdf':
|
|
|
$command = "libreoffice6.3 --invisible --convert-to pdf --outdir \"{$path}\" \"{$pathFile}\"";
|