# CancelProc Class

> A callback function used to abort an operation.

- Product: Adobe PDF Library 21
- Language: Java
- Version: APDFL21.0.0PlusP1c
- HTML page: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/CancelProc
- Version index: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/llms.txt

```java
class CancelProc
```

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

## Description

A callback function used to abort an operation. A CancelProc() value is typically passed to a method that uses it to determine if an asynchronous operation should be ended.

At periodic intervals, the method calls the CancelProc. If the CancelProc returns a "true" boolean value, the method cancels the operation. If CancelProc returns false, the method allows the operation to continue. For example, CancelProc could be used to allow a user to click a Cancel button to end a function.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/Document.md), [`DrawParams`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/DrawParams.md), [`PDFOptimizer`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/PDFOptimizer.md), [`SignDoc`](https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1c/class/SignDoc.md)

## Constructors

### CancelProc

```java
com.datalogics.PDFL.CancelProc.CancelProc()
```

*constructor*

A callback function used to abort an operation. A CancelProc() value is typically passed to a method that uses it to determine if an asynchronous operation should be ended.

At periodic intervals, the method calls the CancelProc. If the CancelProc returns a "true" boolean value, the method cancels the operation. If CancelProc returns false, the method allows the operation to continue. For example, CancelProc could be used to allow a user to click a Cancel button to end a function.

## Methods

### Call

```java
boolean com.datalogics.PDFL.CancelProc.Call()
```

**Returns:** `boolean`

### delete

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

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

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

**Returns:** `synchronized void`

### finalize

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

*protected*

**Returns:** `void`
