I came across a problem converting OMML(Math XML in open office) to an image.
This functionality is in my undergoing project which should be deployed on Linux. For efficiency, I should choose a method without MS products (such as dll, MS Office extensions, etc.).
Show some findings:
- OMML can be translate to MATHML(by XSLT), then I can convert MATHML to image(by jeuclid).
- OMML can be translate to LaTex(by XSLT or writer2tex), then I can convert LaTex to image(by texvc of mediawiki).
But, all these solutions depend on 3rd software or XSLT. Is there a better way to do such a conversion?
I would simply write a macro that would import the OMML into a OOo/AOO/LibreOffice drawing and export that to png, for example.
There are plenty of examples online on how to use OpenOffice Macros with filters.
You can run an openoffice macro from the command line.
Something like this, I do not have the time to look into it more, sorry ...
To run that from the command line, use the following:
sdraw -invisible "macro:///Standard.Module1.ConvertWordToPDF('c:\formula.odf', 'c:\image.png')"
Regards,
HP