<!--
{
  "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/CGPDFScannerCreate(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@F@CGPDFScannerCreate"
  },
  "title" : "CGPDFScannerCreate(_:_:_:)"
}
-->

# CGPDFScannerCreate(_:_:_:)

Creates a PDF scanner.

```
func CGPDFScannerCreate(_ cs: CGPDFContentStreamRef, _ table: CGPDFOperatorTableRef?, _ info: UnsafeMutableRawPointer?) -> CGPDFScannerRef
```

## Parameters

`cs`

A PDF content stream object. (See [CGPDFContentStream](/documentation/CoreGraphics/cgpdfcontentstream).)

`table`

A table of callbacks for the PDF operators you want to handle.

`info`

A pointer to data you want passed to your callback function. (See [CGPDFOperatorTable](/documentation/CoreGraphics/cgpdfoperatortable).)

## Return Value

A PDF scanner object. In Objective-C, you’re responsible for releasing this object by calling the function [`CGPDFScannerRelease(_:)`](/documentation/CoreGraphics/CGPDFScannerRelease(_:)).

## Discussion

When you want to parse the contents of the PDF stream, call the function [`CGPDFScannerScan(_:)`](/documentation/CoreGraphics/CGPDFScannerScan(_:)).

---

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)