Can't convert xls, xlsx, ppt, pptx document using headless

I am trying to convert Excel and PowerPoint documents to a PDF document.

I installed it on my Centos 6 box:

yum -y install libreoffice-headless libreoffice-writer


Package 1:libreoffice-headless-4.0.4.2-14.el6.x86_64 already installed and latest version
Package 1:libreoffice-writer-4.0.4.2-14.el6.x86_64 already installed and latest version

I then ran the command:

libreoffice --headless -convert-to pdf myfile.xlsx

It gives no warning… Just doesn’t create a new PDF document. I’ve successfully done this before, but I think it was a different server (same operating system, just earlier version). I’ve checked file permissions, but don’t think it is the issue (I’ve tried as a normal user and as root).

I could convert doc, docx, and txt files, but not xls, xlsx, ppt, and pptx files.

Thoughts why? Is there a verbose option or a log file which I could check for clues?

Thank you

Need to install libreoffice-calc and libreoffice-impress for Excel and PowerPoint files, respectively.

Don’t think this was previously required. Any comments would be appreciated.