M
M
meeshanya2017-12-28 16:48:59
bash
meeshanya, 2017-12-28 16:48:59

How to run unoconv on macOS High Sierra with LIbreoffice5?

I can't start the unoconv converter on macOS with LibreOffice 5.4.4.2 installed, it swears when I enter the command

Book: user$ unoconv -f pdf *.xlsx
unoconv: Cannot find a suitable pyuno library and python binary combination in /Applications/LibreOffice.app/Contents
ERROR: No module named uno

unoconv: Cannot find a suitable office installation on your system.
ERROR: Please locate your office installation and send your feedback to:
       http://github.com/dagwieers/unoconv/issues

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
meeshanya, 2017-12-30
@meeshanya

As usual, I figured it out myself, I didn’t need unoconv, LibreOffice features are enough,
and for ease of use I created an alias:

alias pdf='/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to pdf' 
Использование 'pdf <file.doc>'

of course, instead of pdf, you can choose any available format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question