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

ValueDescription
XHTMLSaves the document in compliance with the XHTML 1.0 Transitional standard.
HTML_5Saves the document in compliance with the HTML 5 standard.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of HtmlVersion values.

Methods

SignatureDescription
getName(htmlVersion: int) → StringReturns JAVA_STYLE string representation of integer HtmlVersion value.
toString(htmlVersion: int) → StringReturns DotNetStyle string representation of integer HtmlVersion value.
fromName(htmlVersionName: String) → intReturns integer representation by HtmlVersion name.
getValues() → int[]Returns array of HtmlVersion values.

See Also