On 27.11.2021 3.21, Jun 711 wrote:
Hi,

I followed the steps written in this repo to try to compile a compact version of libreoffice that can convert non-English documents to PDFs. https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile <https://github.com/vladgolubev/serverless-libreoffice/blob/master/Dockerfile>

The compiled Libreoffice provided by Vlad Holubiev through the repo works for English documents but not for non-English documents. I posted a question on the repo but haven't got any response. https://github.com/vladgolubev/serverless-libreoffice/issues/39 <https://github.com/vladgolubev/serverless-libreoffice/issues/39>

I am not sure what flags to change. I found autogen.sh flags that he posted but none of them seems to be for supporting non-English languages. https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt <https://github.com/vladgolubev/serverless-libreoffice/blob/master/autogen-help-output-6.2.1.2.txt>

I have also tried to change the default font to Noto Sans following the step mentioned in the libreoffice thread as it seems to be able to support all languages but that didn't help. https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545 <https://ask.libreoffice.org/t/how-to-set-default-fontsize-without-gui/22545>

I wonder if anyone can give me a pointer on what I can try next?

Looks like this is the culprit: https://github.com/vladgolubev/serverless-libreoffice/blob/7927017e96531b042b70f0de24be40fd88b44b63/Dockerfile#L110

--without-fonts LibreOffice includes some third-party fonts to provide a reliable basis for help content, templates, samples, etc. When these fonts are already known to be available on the system then you should use this option.

Obviously done to save disk space.

So drop that option from the Dockerfile.

Ilmari

Reply via email to