unoconv / unoserver

MIT License
592 stars 81 forks source link

Convert works fine by soffice but unoconvert never complete with some file #118

Closed wanghb2018 closed 5 months ago

wanghb2018 commented 6 months ago

Hi, I have issue with Unoserver + Libreoffice. I want to convert docx to pdf. In most cases, it works fine, but there are some files that it never to complete, and there are no error logs either. My environment is docker, Below is my Dockerfile:

FROM alpine:3.20.0
RUN apk add --no-cache bash curl libreoffice py3-pip openjdk8
RUN pip install --break-system-packages unoserver
CMD ["unoserver"]

In docker container, the following command works fine.

soffice --headless --convert-to pdf 1.docx

However, the next command will not stop.

unoconvert --convert-to pdf 1.docx 1.pdf

My file is 1.docx Will appreciate any recommendation how to debug this issue.

regebro commented 5 months ago

That works for me with Libreoffice 7.3.7.2 and unoserver 2.1. What versions are you using?

wanghb2018 commented 5 months ago

LibreOffice 7.6.7.2 60(Build:2) and unoserver 2.1. I've tried that it works in desktop ubuntu, maybe because of the docker container?

wanghb2018 commented 5 months ago

It works when I replace base image to ubuntu:22.04.