wesmiler %!s(int64=6) %!d(string=hai) anos
pai
achega
2095a3bcfd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      vendor/thinkcmf/cmf-app/src/weixin/model/Stroage.php

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

@@ -282,7 +282,8 @@ class Stroage extends Model
         $filename = str_replace('.'.$fileType,'.pdf', $file);
         switch($type){
             case 'pdf':
-                $command = "libreoffice6.3 --invisible --convert-to pdf:writer_pdf_Export --outdir \"{$path}\" \"{$pathFile}\"";
+                $command = "libreoffice6.3 --invisible --convert-to pdf --outdir \"{$path}\" \"{$pathFile}\"";
+//                $command = "libreoffice6.3 --invisible --convert-to pdf:writer_pdf_Export --outdir \"{$path}\" \"{$pathFile}\"";
                 exec($command);
                 break;
         }
@@ -310,7 +311,6 @@ class Stroage extends Model
 
         while(!feof($fp)) {
             $line = fgets($fp,255);
-            echo $line."\n";
             if (preg_match('/\/Count [0-9]+/', $line, $matches)){
                 preg_match('/[0-9]+/',$matches[0], $matches2);
                 if ($max<$matches2[0]) $max=$matches2[0];