Q:

Trying to convert ppt to pdf using libreoffice ---headless -convert- topdf with php script

When used below command on the command line it working file
libreoffice --headless -convert-to pdf ".$sourse." -outdir outputolder/

but, if use in php script nothing happen. Can anybody provide explanation on what is the exact issue with

A:

Well, I can see that you typed "-convert-to pdf" instead of "--convert-to-pdf". Maybe you did a similar typo in your php script? Hard to say without seeing the PHP code, though.
Please provide details: how do you call libreoffice from PHP, what do the error logs say etc.
Finally, if you are running SElinux and not Ubuntu, please take the question to a SELinux forum.

