Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 828245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:41:47+00:00 2026-05-15T03:41:47+00:00

Are there any libraries which take MathML (or, even more preferably, OMML) and outputs

  • 0

Are there any libraries which take MathML (or, even more preferably, OMML) and outputs a .PNG file?

I am putting together an export process for .docx files and, as a part of this process, I’d like to extract equations and render them as .PNG files. Word 2007 does this natively when you save a document for the web, but so far, I have not been able to find a way to do this programmatically (if anyone has an answer for that, it would be even better). So the next best thing is to take the OMML and use the Microsoft provided XSL stylesheets and transform them to MathML.

Unfortunately, I haven’t been able to find any (working) rendering libraries for either MathML or OMML.

If there aren’t any pure .NET libraries for this, I’ll settle for just about anything that I can call from a commandline to output a .PNG from either MathML or OMML.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:41:47+00:00Added an answer on May 15, 2026 at 3:41 am

    I have a similar need. Here’s a fragment that works for me:

    public void FormulaToImage(string imageName, string eq)
    {
        Application app = new Application();
        Document _doc = app.Documents.Add();
        Range _range = _doc.Range();
        _range.Text = eq; // "Celsius = (5/9)(Fahrenheit – 32)";
        _doc.OMaths.Add(_range);
        _doc.OMaths.BuildUp();
        _doc.SaveAs(@"foo.htm", WdSaveFormat.wdFormatHTML);
    
        //the gif appears to be better quality than the png
        File.Move(@"foo_files\image002.gif", imageName + ".gif");                
        app.Documents.Close(WdSaveOptions.wdDoNotSaveChanges);
        app.Quit(false);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any libraries out there (preferably a self contained Text Edit Control) for
Are there any libraries that can take a few digital pictures of an object
Are there any gems / libraries which can be used with Ruby to convert
Are there any libraries, pieces of code or suchlike that'll let me play ZX
Are there any libraries (3rd party or built-in) in PHP to calculate text diffs?
Is there any libraries that would allow me to use the same known notation
Are there any libraries out there for Java that will accept two strings, and
Are there any libraries or resources available for parsing/reading an archived eventlogs?
Are there any libraries or guides for how to read and parse binary data
Can audio being recorded be compressed on the fly? or are there any libraries

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.