com.aspose.words
Class HtmlOfficeMathOutputMode

java.lang.Object
    extended by com.aspose.words.HtmlOfficeMathOutputMode

public class HtmlOfficeMathOutputMode 
extends java.lang.Object

Utility class containing constants. Specifies how Aspose.Words exports OfficeMath to HTML, MHTML and EPUB.

Example:

Shows how to control the way how OfficeMath objects are exported to .html.
// Open a document that contains OfficeMath objects
Document doc = new Document(getMyDir() + "Office math.docx");

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

doc.save(getArtifactsDir() + "HtmlSaveOptions.OfficeMathOutputMode.html", options);

Field Summary
static final intIMAGE = 0
           OfficeMath is converted to HTML as image specified by <img> tag.
static final intMATH_ML = 1
           OfficeMath is converted to HTML using MathML.
static final intTEXT = 2
           OfficeMath is converted to HTML as sequence of runs specified by <span> tags.
 

Field Detail

IMAGE = 0

public static final int IMAGE
OfficeMath is converted to HTML as image specified by <img> tag.

MATH_ML = 1

public static final int MATH_ML
OfficeMath is converted to HTML using MathML.

TEXT = 2

public static final int TEXT
OfficeMath is converted to HTML as sequence of runs specified by <span> tags.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.