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

  • SEARCH
  • Home
  • 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
  • 3 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 or methods to mock out the file system in C#
Are there any libraries create programs in java that uses a file as a
Are there any gems / libraries which can be used with Ruby to convert
Is there any java libraries which can be used to capture IEEE 802.11 frames
Are there any libraries available that allow Android applications to transcode videos to different
Are there any libraries or utilities that will formally spell out the time? Examples:
Are there any libraries that provide username and password login for Google AppEngine? While
are there any libraries for Linux wrote with C++, that could register global hotkeys
Are there any libraries that support JSTL style coding in an ASP MVC view?
Are there any libraries or tools specifically designed to help PHP programmers write Javascript?

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.