Converting .docx to pdf with libreoffice using php -


i trying convert .docx file .pdf using libreoffice.

my libreoffice installed directory

c:\program files\libreoffice 4 

using commandline getting output with

c:\program files\libreoffice 4\program>soffice.exe -headless -convert-to pdf c:\temp\test.docx -outdir c:\temp 

but in php no output

$command = '"c:\program files\libreoffice 4\program\soffice.exe" -headless -convert-to pdf c:\temp\test.docx -outdir c:\temp'; exec($command, $output); 

how solve ? inadvance.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -