---
title: "HtmlMediaType"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/htmlmediatype/"
product: "Aspose.PDF for Java API Reference"
description: "Specifies possible media types used during rendering."
---

**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

| Field | Description |
| --- | --- |
| [Print](#Print) | Print. |
| [Screen](#Screen) | Screen. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Print {#Print}
```
public static final HtmlMediaType Print
```

Print.

### Screen {#Screen}
```
public static final HtmlMediaType Screen
```

Screen.

### getByValue {#getByValue-int-}
```
public static HtmlMediaType getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#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
