Libreoffice convert-to not working

casper123 picture casper123 · Feb 27, 2014 · Viewed 30.6k times · Source

I'm trying to convert documents from html,txt to pdf,odt and vice versa.. But only odt to pdf seems to work.. No other file formats are converted

Here are my commands

libreoffice --headless --convert-to pdf test.html [Not working]
libreoffice --headless --convert-to odt test.html [Not working]
libreoffice --headless --convert-to pdf test.docx [Not working]
libreoffice --headless --convert-to pdf test.odt  [Working]

Answer

Frank Yin picture Frank Yin · Jul 6, 2015

Try closing all running instances of LibreOffice before executing the command. This was the root cause of my pain.