HtmlMediaType

Inheritance: java.lang.Object, java.lang.Enum < HtmlMediaType > com.aspose.pdf.HtmlMediaType, java.lang.Enum < HtmlMediaType >, com.aspose.pdf.HtmlMediaType

All Implemented Interfaces: Serializable, Comparable < HtmlMediaType >

public enum HtmlMediaType extends Enum < HtmlMediaType >

Specifies possible media types used during rendering.

Fields

FieldDescription
PrintPrint.
ScreenScreen.

Methods

MethodDescription
getByValue
getValue
valueOfReturns the enum constant of this type with the specified name.
valuesReturns an array containing the constants of this enum type, in the order they are declared.

Print

public static final HtmlMediaType Print

Print.

Screen

public static final HtmlMediaType Screen

Screen.

getByValue

public static HtmlMediaType getByValue(int value)

Parameters:

ParameterTypeDescription
value

getValue

public int getValue()

valueOf

Returns the enum constant of this type with the specified name.

values

public static HtmlMediaType [] values()

Returns an array containing the constants of this enum type, in the order they are declared.

Returns: an array containing the constants of this enum type, in the order they are declared