public class HtmlOfficeMathOutputMode
extends java.lang.Object
Examples:
Shows how to specify how to export Microsoft OfficeMath objects to HTML.
Document doc = new Document(getMyDir() + "Office math.docx");
// When we save the document to HTML, we can pass a SaveOptions object
// to determine how the saving operation handles OfficeMath objects.
// Setting the "OfficeMathOutputMode" property to "HtmlOfficeMathOutputMode.Image"
// will render each OfficeMath object into an image.
// Setting the "OfficeMathOutputMode" property to "HtmlOfficeMathOutputMode.MathML"
// will convert each OfficeMath object into MathML.
// Setting the "OfficeMathOutputMode" property to "HtmlOfficeMathOutputMode.Text"
// will represent each OfficeMath formula using plain HTML text.
HtmlSaveOptions options = new HtmlSaveOptions();
{
options.setOfficeMathOutputMode(htmlOfficeMathOutputMode);
}
doc.save(getArtifactsDir() + "HtmlSaveOptions.OfficeMathOutputMode.html", options);
| Modifier and Type | Field and Description |
|---|---|
static int |
IMAGE
OfficeMath is converted to HTML as image specified by
|
static int |
length |
static int |
MATH_ML
OfficeMath is converted to HTML using MathML.
|
static int |
TEXT
OfficeMath is converted to HTML as sequence of runs specified by tags.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String htmlOfficeMathOutputModeName) |
static java.lang.String |
getName(int htmlOfficeMathOutputMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int htmlOfficeMathOutputMode) |
public static int IMAGE
public static int MATH_ML
public static int TEXT
public static int length