wesmiler vor 6 Jahren
Ursprung
Commit
0cfe855827
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

+ 4 - 0
vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

@@ -289,6 +289,10 @@ echo $file."\n";
         switch($type){
             case 'pdf':
                 $command = "libreoffice6.3 --invisible --convert-to pdf --outdir \"{$path}\" \"{$pathFile}\"";
+                exec($command);
+                break;
+            case 'docx':
+                $command = "libreoffice6.3 --invisible --convert-to docx --outdir \"{$path}\" \"{$pathFile}\"";
 //                $command = "libreoffice6.3 --invisible --convert-to pdf:writer_pdf_Export --outdir \"{$path}\" \"{$pathFile}\"";
                 exec($command);
                 break;