LibreOffice Command Line Conversion - No Output File?

旧时模样 提交于 2019-12-02 04:36:22

I cant reproduce your error. It works for me, even with pptx files.

Check the bug-tracker of libreoffice. Try another version (I am still running 3.4.something). Investigate the output directory - e.g. do you have write privileges there?

And a rather stupid idea: Hit F5 (or similar) in your file browser (mine is Dolphin) in order to refresh. I needed to do this in this case, so I could see the new file.

If you see no output then the problem may be related to this bug. Just make sure that there is no other instance of libre office running (soffice.bin). Source.

I had a similar problem where soffice seemed to run fine (headless mode on server) but there were no output files.

Fixed it by running apt-get install libreoffice-writer

Dieter Delvaux

Go to the folder your file is in & convert it to that location to see if your conversion works. If it works, try to put "" around your file to convert.

I have a bashscript that you can maybe use for your problem:

#!/bin/bash

# first do chmod +x convert.sh
# then run ./convert.sh

mkdir out
cd testfiles
for file in *; do
    echo "${file}"
    soffice --headless -convert-to pdf:"writer_pdf_Export"      
        --outdir ../Documenten/BLACK/out "${file}" 
done
cd ..
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!