Convert pptx to pdf but tip a error

soffice --headless --writer --convert-to pdf /data/0512.pptx --outdir /data
我用这种格式的命令转换一个10MB的pptx文件时,返回报错提示:
Please verify input parameters… (SfxBaseModel::impl_store <file:///data/auto_bdaa2c010c5d4718b0866b670b6f4b56.pdf> failed: 0x11b(Error Area:Io Class:Abort Code:27) at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3221 at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1792)
是否有人遇到过相似的问题?

???

i fix my command:

soffice --headless --impress --convert-to pdf /data/auto_1f09f27a741943aba893c0a7fc89f124.pptx --outdir /data

but still get error tips:

Please verify input parameters… (SfxBaseModel::impl_store <file:///data/auto_1f09f27a741943aba893c0a7fc89f124.pdf> failed: 0x11b(Error Area:Io Class:Abort Code:27) at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3221 at /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1792)

I test tihis command with another .pptx file, and convert it successfully;
then I test this command in a different server with the same docker-image, it also works well
libreoffice version is 7.6.7.2

A specific PPTX problem then; so a sample file is needed to diagnose. But given how old your version is, I’d advise you to test with a newer version first.

25.2 version can solve this problem,thanks. :grinning:

你的目标文件夹应该有一个因为转换失败的坏文件名(该文件被锁定了,不允许其他程序修改),删除他,重试一下

我之前也试过不同命名的文件名,还是会报错;后面更新office版本到25.2,这个问题就不再出现了,我猜测这更多可能是一个文件兼容问题,因为只有特定文件会出现这个问题;

不过目前我碰到了一个新的问题,25.2只有x86架构的linux安装包,arm架构的安装包我找了很久都没有找到,是否有什么地方可以找到使用域linux的arm最新版本安装包?

官网有吧,我不太清楚,我用的7.2版本,不太复杂样式的转化基本没问题,我主要是用在服务器上的