Convert to PDF - .docx equations issue
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)
Gotenberg
Local LO
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?
Source: gotenberg/gotenberg