I have HTML in my database which has MathML, and I queried it to create DOCX. Using variables, I am able to use addMathEquation and replaceVariableByWordFragment to include the equations into the DOCX. createDocx is successful.
Then I also need a PDF version, so I run it through transformDocument. However, the equations disappeared from the PDF.
I have tried using "native" and "libreoffice" types, same issue.
I then tried using Dompdf, but no improvment.
How do I code it so that maths equations are visible correctly in the PDF?