<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFOperatorTableCreate()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPDFOperatorTableCreate"
  },
  "title" : "CGPDFOperatorTableCreate()"
}
-->

# CGPDFOperatorTableCreate()

Creates an empty PDF operator table.

```
func CGPDFOperatorTableCreate() -> CGPDFOperatorTableRef?
```

## Return Value

An empty PDF operator table. In Objective-C, you’re responsible for releasing this object by calling [`CGPDFOperatorTableRelease(_:)`](/documentation/CoreGraphics/CGPDFOperatorTableRelease(_:)).

## Discussion

Call the function [`CGPDFOperatorTableSetCallback(_:_:_:)`](/documentation/CoreGraphics/CGPDFOperatorTableSetCallback(_:_:_:)) to fill the operator table with callbacks.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)