Recently, we tried converting Office documents to PDF using libreoffice-convert. It worked well on the local machine, but when run inside Docker, everything broke — the PDFs were filled with white boxes.

white boxes in the pdf

After digging into it, I realized the main issue was the lack of necessary fonts in the Docker container. Once the fonts were installed, it worked as expected.

after-fonts-installed

References

Fonts - Alpine Linux

elwerene/libreoffice-convert