**Inheritance:**
java.lang.Object, com.aspose.pdf.Document.RepairOptions

```
public static class Document.RepairOptions extends Object
```

Represents options for repairing a PDF document. This class provides a way to customize the repair process of a PDF document.

## Constructors

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

## Methods

| Method | Description |
| --- | --- |
| [isRestoreIndirectObjectGenerations](#isRestoreIndirectObjectGenerations--) | Gets or sets a value indicating whether to restore wrong generation numbers in references to indirect objects during the repair process. |
| [setRestoreIndirectObjectGenerations](#setRestoreIndirectObjectGenerations-boolean-) | Gets or sets a value indicating whether to restore wrong generation numbers in references to indirect objects during the repair process. |

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



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

Gets or sets a value indicating whether to restore wrong generation numbers in references to indirect objects during the repair process.

**Returns:**
boolean value

### setRestoreIndirectObjectGenerations {#setRestoreIndirectObjectGenerations-boolean-}
```
public void setRestoreIndirectObjectGenerations(boolean restoreIndirectObjectGenerations)
```

Gets or sets a value indicating whether to restore wrong generation numbers in references to indirect objects during the repair process.

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