---
title: "CGPDFScannerCreate(_:_:_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgpdfscannercreate(_:_:_:)"
---

# CGPDFScannerCreate(_:_:_:)

Creates a PDF scanner.

## Declaration

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

## Parameters

- `cs`: A PDF content stream object. (See doc://com.apple.coregraphics/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 doc://com.apple.coregraphics/documentation/CoreGraphics/cgpdfoperatortable.)

## Return Value

Return Value A PDF scanner object. In Objective-C, you’re responsible for releasing this object by calling the function CGPDFScannerRelease(_:).

## Discussion

Discussion When you want to parse the contents of the PDF stream, call the function CGPDFScannerScan(_:).
