# PrintCancelProc Class

> Print cancellation callback function, a class used to cancel print operations.

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

```csharp
class PrintCancelProc : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Print cancellation callback function, a class used to cancel print operations.

A PrintCancelProc() is typically passed to some method that takes a long time to complete. At frequent intervals, the method calls the PrintCancelProc().

If the PrintCancelProc() returns true, the method cancels its operation; if the PrintCancelProc() returns false, the method continues.

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

**Uses types:** [`PrintCancelProc`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/PrintCancelProc.md)

## Constructors

### PrintCancelProc

```csharp
Datalogics.PDFL.PrintCancelProc.PrintCancelProc()
```

*constructor*

Print cancellation callback function, a class used to cancel print operations.

A PrintCancelProc() is typically passed to some method that takes a long time to complete. At frequent intervals, the method calls the PrintCancelProc().

If the PrintCancelProc() returns true, the method cancels its operation; if the PrintCancelProc() returns false, the method continues.

## Methods

### Call

```csharp
virtual bool Datalogics.PDFL.PrintCancelProc.Call()
```

**Returns:** `bool`

### Dispose

```csharp
void Datalogics.PDFL.PrintCancelProc.Dispose()
```

**Returns:** `void`
