**Inheritance:**
java.lang.Object, com.aspose.pdf.Form.FlattenSettings

```
public static class Form.FlattenSettings extends Object
```

Class which describes settings for Form flattening procedure.

## Constructors

| Constructor | Description |
| --- | --- |
| [FlattenSettings](#FlattenSettings--) |  |

## Methods

| Method | Description |
| --- | --- |
| [getApplyRedactions](#getApplyRedactions--) | If true, redaction specified Redaction annotation will be applied |
| [getCallEvents](#getCallEvents--) | If set, formatting and other JavaScript events will be called. True by default. |
| [getUpdateAppearances](#getUpdateAppearances--) | If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance. By default set to false. |
| [isHideButtons](#isHideButtons--) | If set, buttons will be removed from flattened document. False by default. |
| [setApplyRedactions](#setApplyRedactions-boolean-) | If true, redaction specified Redaction annotation will be applied |
| [setCallEvents](#setCallEvents-boolean-) | If set, formatting and other JavaScript events will be called. True by default. |
| [setHideButtons](#setHideButtons-boolean-) | If set, buttons will be removed from flattened document. False by default. |
| [setUpdateAppearances](#setUpdateAppearances-boolean-) | If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance. By default set to false. |

### FlattenSettings {#FlattenSettings--}
```
public FlattenSettings()
```



### getApplyRedactions {#getApplyRedactions--}
```
public final boolean getApplyRedactions()
```

If true, redaction specified Redaction annotation will be applied

**Returns:**
boolean value

### getCallEvents {#getCallEvents--}
```
public boolean getCallEvents()
```

If set, formatting and other JavaScript events will be called. True by default.

**Returns:**
boolean value

### getUpdateAppearances {#getUpdateAppearances--}
```
public boolean getUpdateAppearances()
```

If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance. By default set to false.

**Returns:**
boolean value

### isHideButtons {#isHideButtons--}
```
public boolean isHideButtons()
```

If set, buttons will be removed from flattened document. False by default.

**Returns:**
boolean value

### setApplyRedactions {#setApplyRedactions-boolean-}
```
public final void setApplyRedactions(boolean value)
```

If true, redaction specified Redaction annotation will be applied

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

### setCallEvents {#setCallEvents-boolean-}
```
public void setCallEvents(boolean value)
```

If set, formatting and other JavaScript events will be called. True by default.

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

### setHideButtons {#setHideButtons-boolean-}
```
public void setHideButtons(boolean value)
```

If set, buttons will be removed from flattened document. False by default.

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

### setUpdateAppearances {#setUpdateAppearances-boolean-}
```
public void setUpdateAppearances(boolean value)
```

If set, all field appearances will be regenerated before flattening. This option may help if field is incorrectly flattened. This option may decrease performance. By default set to false.

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