|
|
@@ -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];
|