Answer the question
In order to leave comments, you need to log in
Why doesn't libreoffice convert the file via shell_exec?
Good afternoon. It is required to convert a docx file on the server to pdf and send it for download. I put the file in the folder, then I do the following:
chdir(__DIR__ . '/../../docs/payment_directory/' . $id . '/');
shell_exec('libreoffice --headless --convert-to pdf word.docx');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question