HtmlVersion
Overview
HtmlVersion is an enum in Aspose.Words FOSS for Java.
Indicates the version of HTML is used when saving the document to SaveFormat.HTML and SaveFormat.MHTML formats.
Edition status of its 7 listed members (a property and its accessor methods are listed separately, overloads once): 7 not yet exercised by a verified example.
This enum declares 4 methods for HtmlVersion objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
XHTML | Saves the document in compliance with the XHTML 1.0 Transitional standard. |
HTML_5 | Saves the document in compliance with the HTML 5 standard. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of HtmlVersion values. |
Methods
| Signature | Description |
|---|---|
getName(htmlVersion: int) → String | Returns JAVA_STYLE string representation of integer HtmlVersion value. |
toString(htmlVersion: int) → String | Returns DotNetStyle string representation of integer HtmlVersion value. |
fromName(htmlVersionName: String) → int | Returns integer representation by HtmlVersion name. |
getValues() → int[] | Returns array of HtmlVersion values. |