# PrintCancelProc Class

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

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PrintCancelProc
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/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/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.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`
