Is there any way to install only soffice command itself?

Hi there,

I’m trying to use command

soffice --headless --convert-to pdf

inside my Docker Container. But libreoffice itself takes 482MB all alone.

Is there anyway i can install only part i need.

Thanks

I’m not aware of GUI-less LibreOffice installation packages. You could avoid installing desktop integration packages and try to install only libreoffice-core but in the end of the day, you still end up with quite a lot. LO is a complex piece of software.

Hope that someone else has better solution.

Before LibO can convert (export) anything to pdf it has to read a file and to interpret its content. It will need a lot of software components to perform the task.