S
S
Sergey Berezovsky2018-05-06 12:53:51
Java
Sergey Berezovsky, 2018-05-06 12:53:51

How can I extract and display a formula created with Microsoft Equation 3.0 from DOCX and display it on an HTML page?

So there is one problem. I need to pull a DOCX formula created with Microsoft Equation 3.0 and display it on an HTML page. I know that a DOCX file is a zip file that stores open format XML files.
Also, I already addressed a similar question on ru.stackoverflow.com and they wrote to me that anything can be pulled out of an XML file.
But here's the problem:
I can't pull out this old format formula. For example:
This is an image of an XML file with a formula that was created using Microsoft Equation 3.0 .
5aeecf0d3e892741201705.png
This is an image of an XML file with a formula that was created using Office MathML (OMML) .
5aeed02622ee0204117268.png
As you can see, a formula created using Office MathML (OMML) has a specific oMathPara tag that can be used to extract it further using the magic described in this article https://stackoverflow.com/questions/44748712/readi. .. display on the HTML page.
With the formula of the old format, it is not clear to me how to extract it and display it on an HTML page.
Need help solving my problem! I will be grateful in advance .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2018-05-06
@Adamos

Also, I already addressed a similar question on ru.stackoverflow.com and they wrote to me that anything can be pulled out of an XML file.

This is true, but there is one caveat: how to draw a formula from this "anything" - only the Microsoft package knows. And the data from this XML will give you absolutely nothing. Microsoft openness.
All you can do is open the document in Office and try to export it to some really common graphic format. You can try to start with PDF...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question