When I convert a docx document to a pdf document at my development computer (debian 12.2 with LibreOffice 220.127.116.11), then the pdf document contains hyphenation: a long word is split up into two lines, e.g. the German word “Datenschutz” is split up into “Daten-” at the end of one line and “schutz” at the beginning of the following line.
When I convert the same document to a pdf document at my server (debian 12.2 with LibreOffice 18.104.22.168), then the pdf document contains no hyphenation. “Datenschutz” is moved as a hole into the second line and this happens also with all other long words at the end of a line. They are not split up.
In both cases I use the same command:
libreoffice7.6 --headless --norestore --nofirststartwizard "-env:UserInstallation=file:///tmp/LibreOffice_Conversion_myuser" --convert-to pdf:writer_pdf_Export --outdir /home/myuser/ /home/myuser/test.docx
Where could this difference come from?
And how can I equalize the output so that both systems split up / break words?
In both cases the font is Verdana and in both cases I installed ttf-mscorefonts-installer 3.8.1. So the size of the characters should be the same in both cases.
After installing the German language pack hyphenation is equal in both cases.
tar -xvf LibreOffice_7.6.3_Linux_x86-64_deb_langpack_de.tar.gz
sudo apt install ./*.deb