# RolledBackDocument Class

> A class representing a Rolled back instance of a PDF document that was previously saved Incrementally.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RolledBackDocument
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class RolledBackDocument
```

**Namespace:** `com::datalogics::PDFL`

## Description

A class representing a Rolled back instance of a PDF document that was previously saved Incrementally.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md), [`RolledBackDocumentVector`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/RolledBackDocumentVector.md)

## Methods

### closeDocument

```java
void com.datalogics.PDFL.RolledBackDocument.closeDocument()
```

**Returns:** `void`

Closes the rolled-back document and releases its associated file resources. This closes both the underlying file and the PDF document handle. After calling this method, the object should no longer be used.

### delete

```java
synchronized void com.datalogics.PDFL.RolledBackDocument.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.RolledBackDocument.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.RolledBackDocument.finalize()
```

*protected*

**Returns:** `void`

### save

```java
void com.datalogics.PDFL.RolledBackDocument.save(String newPath)
```

**Parameters**

- `newPath` (`String`): The file system path where the rolled-back document will be saved.

**Returns:** `void`

Saves the Rolled back document instance using the specified path to disk. The document is saved in full (non-incremental) mode.
