---
title: "ImportFormat"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/importformat/"
product: "Aspose.PDF for Java API Reference"
description: "Specifies import format."
---

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

**All Implemented Interfaces:**
Serializable, Comparable < ImportFormat >

```
public enum ImportFormat extends Enum < ImportFormat >
```

Specifies import format.

## Fields

| Field | Description |
| --- | --- |
| [Cgm](#Cgm) | Computer Graphics Metafile format. |

## 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. |

### Cgm {#Cgm}
```
public static final ImportFormat Cgm
```

Computer Graphics Metafile format.

### getByValue {#getByValue-int-}
```
public static ImportFormat 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 ImportFormat [] 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
