yum install unoconv libreoffice-headless
unoconv -f pdf sample.doc
In CentOS 6.6, i have to start the listener to start conversion, but in CentOS 7, apparently i don’t have to start the listener to do conversion.
So in my case, i do not start the listener, but if u have to :
unoconv –listener &
Alternatively you can use libreoffice to do the conversion for you from the shell :
libreoffice –headless –invisible –convert-to pdf sample.doc