Search code examples
phppdf-generationlibreofficealpine-linuxdoc

Text not correctly converted libreoffice docx to pdf


I have a big problem converting doc/docx to pdf. I created a file conversion API with Symfony. I mainly work on ubuntu, and never had any problems. But I have to migrate from Ubuntu to Alpine. And there comes the tragedy.

Basically, the text is converted into strange characters. example result conversion

Image pdf converted

1

I have searched far and wide, but nothing that is relevant to my problem. The api is working and there are no problems there, but libreoffice does not work as it should.

I am open to any advice you could give me.


Solution

  • Alpine and a too minimalised os verion. I created a classic php-apache docker container in parallel, which solved my problem.

    Now everything works without any problems.

    Executing a call to api rest of the converter, integrated as a promise in the main api.