I have installed LibreOffice
version 6 at my 64 bit Windows 7 OS
. If I try to convert .docx
to .pdf
from Command Prompt
, it just works fine. But if I try to execute the command from laravel
, it reports that the application cannot be started.
Laravel Code
$process = new Process('"C:\Program Files\LibreOffice\program\soffice.exe" --headless "- env:UserInstallation=file:///tmp/LibreOffice_Conversion_${USER}" -convert-to pdf --outdir D:\converted\ D:\acceptance.docx');
$process->run();
Error Message