Math equations
Posted: Thu May 03, 2018 8:12 pm
Hello,
I'm trying to achieve DOCX to PDF or XHTML transformation with Math equations.
I saw that Docx4j does not support OMML. I also tried to search the forum, I was able to find some quite old threads that are not really helping me.
So I am trying to pre-process the DOCX before sending it to DOCX4J.
I used Apache POI to iterate over the paragraphs and I was able to transform equations into MathML with OMML2MML.xsl but I have no clue how to "inject" these MathML fragments into the DOCX or passing them to DOCX4J if that's ever possible?
Another idea would be to replace the OMML by plain text (with the new generated MathML equations) into DOCX so that DOCX4J does not process it ? Some sort of hidden/ignore field that I could post-process after DOCX4J transformation ??
Thanks in advance !
I'm trying to achieve DOCX to PDF or XHTML transformation with Math equations.
I saw that Docx4j does not support OMML. I also tried to search the forum, I was able to find some quite old threads that are not really helping me.
So I am trying to pre-process the DOCX before sending it to DOCX4J.
I used Apache POI to iterate over the paragraphs and I was able to transform equations into MathML with OMML2MML.xsl but I have no clue how to "inject" these MathML fragments into the DOCX or passing them to DOCX4J if that's ever possible?
Another idea would be to replace the OMML by plain text (with the new generated MathML equations) into DOCX so that DOCX4J does not process it ? Some sort of hidden/ignore field that I could post-process after DOCX4J transformation ??
Thanks in advance !