#1389·gotenberg

Convert to PDF - .docx equations issue

Author: fabricioreisfCreated Nov 10, 2025Updated Nov 13, 2025
Labelsenhancementlibreofficemaybe

Hello!

When converting a DOCX with mathematical equations to PDF using Gotenberg, the equation spacing looks different from the same conversion done locally with LibreOffice.

The font in both results looks like a generical default that L.O. uses, but in Gotenberg the variables appear more spaced out and the operators are higher, while locally they look compact and well aligned.

I’ve tried:

Installing Cambria Math inside the container

Changing to Dejavu Math Tex Gyre

The difference persists. It seems the LibreOffice headless engine used by Gotenberg calculates slightly different layout metrics for equations.

Screenshots:

docx (Cambia Math)

Image

Gotenberg

Image

Local LO

Image

Possible solution

Would it be possible to configure or align LibreOffice’s rendering (e.g., DPI or layout settings) in Gotenberg to match desktop results?