LibreOffice命令行转换-没有输出文件? [英] LibreOffice Command Line Conversion - No Output File?
问题描述
我正在使用安装在Linux机器上的LibreOffice,似乎有一个奇怪的问题,因为转换似乎正在进行中,并且似乎没有错误,但是指定的输出目录中没有输出文件
I am using LibreOffice installed on my Linux box and I seem to be having a weird problem in that the conversion seems to be taking place, and there seem to be no errors, but there is no output file in the specified output directory.
以下是我正在使用的命令的示例:
Here is an example of the command I am using:
/opt/libreoffice3.6/program/soffice --headless --invisible --convert-to pdf /dir/file.pptx --outdir /dir
这是该命令的结果:
convert /dir/file.pptx -> /dir/file.pdf using impress_pdf_Export
但是问题是运行转换后/dir/file.pdf不存在.
But the problem is that after running the conversion /dir/file.pdf does not exist.
你们有什么建议吗?
推荐答案
我无法重现您的错误.即使使用pptx文件,它也对我有用.
I cant reproduce your error. It works for me, even with pptx files.
检查libreoffice的错误跟踪器.尝试其他版本(我仍在运行3.4.something).调查输出目录-例如你在那里有写权限吗?
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?
一个很愚蠢的主意:在文件浏览器(我叫Dolphin)中按F5(或类似键)以刷新.在这种情况下,我需要执行此操作,以便可以看到新文件.
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.
这篇关于LibreOffice命令行转换-没有输出文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!