Click or drag to resize

HtmlOfficeMathOutputMode Enumeration

Specifies how Aspose.Words exports OfficeMath to HTML, MHTML and EPUB.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public enum HtmlOfficeMathOutputMode
Members
  Member nameValueDescription
Image0 OfficeMath is converted to HTML as image specified by <img> tag.
MathML1 OfficeMath is converted to HTML using MathML.
Text2 OfficeMath is converted to HTML as sequence of runs specified by <span> tags.
Examples
Shows how to control the way how OfficeMath objects are exported to .html.
// Open a document that contains OfficeMath objects
Document doc = new Document(MyDir + "Office math.docx");

// Create a HtmlSaveOptions object and configure it to export OfficeMath objects as images
HtmlSaveOptions options = new HtmlSaveOptions();
options.OfficeMathOutputMode = HtmlOfficeMathOutputMode.Image;

doc.Save(ArtifactsDir + "HtmlSaveOptions.OfficeMathOutputMode.html", options);
See Also