简体   繁体   中英

Read MathType object, convert MathType object to image

I have a docx file that contains mathematical formulas created by mattype. Is there a way to read its contents using java, poi? Or convert all of those formulas created by mathtype to images?

Example document below : 在此处输入图片说明

MathType equation in word is composed of wmf and ole bin. You can get the wmf and convert it to raster format, png\\jpg , etc.

I am involved in this project (XProc/XSLT/XML based): http://transpect.github.io/modules-docx2tex.html

I am not sure if it is worth the setup time for a single conversion.
If you want to do it frequently, it absolutely is.

Once you have the tex, you can generate images from those sources.

If you really only want equations, then take a look at these single transpect modules:
mathtype2mml: https://github.com/transpect/mathtype-extension/
mml2tex: https://github.com/transpect/mml2tex

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM