use ->cmd instead of hardcoded libreoffice
This commit is contained in:
parent
f437673f1a
commit
bab8b20cbd
|
@ -28,7 +28,7 @@ if (extension_loaded('imagick')) {
|
|||
|
||||
chdir(get_temp_dir());
|
||||
|
||||
$exec = 'libreoffice --headless -convert-to pdf ' . escapeshellarg($abspath);
|
||||
$exec = $this->cmd . ' --headless -convert-to pdf ' . escapeshellarg($abspath);
|
||||
exec($exec)
|
||||
|
||||
//create imagick object from pdf
|
||||
|
|
Loading…
Reference in New Issue