---
title: "CGPDFOperatorTableSetCallback(_:_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfoperatortablesetcallback(_:_:_:)"
---

# CGPDFOperatorTableSetCallback(_:_:_:)

Sets a callback function for a PDF operator.

## Declaration

```swift
func CGPDFOperatorTableSetCallback(_ table: CGPDFOperatorTableRef, _ name: UnsafePointer<CChar>, _ callback: CGPDFOperatorCallback)
```

## Parameters

- `table`: A PDF operator table.
- `name`: The name of the PDF operator you want to set a callback for.
- `callback`: The callback to invoke for the PDF operator specified by the name parameter.

## Discussion

Discussion You call the function CGPDFOperatorTableSetCallback(_:_:_:) for each PDF operator for which you want to provide a callback. See Appendix A in the PDF Reference, Second Edition, version 1.3, Adobe Systems Incorporated for a summary of PDF operators.
