|
|
@ -48,12 +48,12 @@ class Convertor |
|
|
|
*/ |
|
|
|
private function convertToDocx() |
|
|
|
{ |
|
|
|
(new Process(['export HOME=' . env('USER_HOME_PATH')]))->run(); |
|
|
|
|
|
|
|
/** |
|
|
|
* Convert doc,dot,rtf,odt to docx |
|
|
|
*/ |
|
|
|
$process = new Process([ |
|
|
|
'sudo', |
|
|
|
'-S', |
|
|
|
'soffice', |
|
|
|
'--headless', |
|
|
|
'--convert-to', |
|
|
@ -82,9 +82,9 @@ class Convertor |
|
|
|
*/ |
|
|
|
private function convertDocumentToText() |
|
|
|
{ |
|
|
|
(new Process(['export HOME=' . env('USER_HOME_PATH')]))->run(); |
|
|
|
|
|
|
|
$process = new Process([ |
|
|
|
'sudo', |
|
|
|
'-S', |
|
|
|
'soffice', |
|
|
|
'--headless', |
|
|
|
'--convert-to', |
|
|
@ -144,9 +144,9 @@ class Convertor |
|
|
|
|
|
|
|
private function convertToHtml() |
|
|
|
{ |
|
|
|
(new Process(['export HOME=' . env('USER_HOME_PATH')]))->run(); |
|
|
|
|
|
|
|
$process = new Process([ |
|
|
|
'sudo', |
|
|
|
'-S', |
|
|
|
'soffice', |
|
|
|
'--headless', |
|
|
|
'--convert-to', |
|
|
|