CGPDFOperatorTable

A set of callback functions for operators used when scanning content in a PDF document.

Overview

You pass an operator table and a PDF content stream to a CGPDFScanner object. When the scanner parses a PDF operator, Core Graphics invokes your callback for that operator. See also CGPDFScanner and CGPDFContentStream.

For more about PDF operators, see the latest version of PDF Reference, Adobe Systems Incorporated.

Topics

Creating a PDF Operator Table

Setting Callback Functions

Retaining and Releasing a PDF Operator Table

func CGPDFOperatorTableRetain(CGPDFOperatorTableRef) -> CGPDFOperatorTableRef

Increments the retain count of a CGPDFOperatorTable object.

func CGPDFOperatorTableRelease(CGPDFOperatorTableRef)

Decrements the retain count of a CGPDFOperatorTable object.

Callbacks

typealias CGPDFOperatorCallback

Performs custom processing for PDF operators.

Data Types

typealias CGPDFOperatorTableRef

A type that stores callback functions for PDF operators.

See Also

Abstract Types for PDF Document Content

CGPDFPage

A page in a PDF document.

CGPDFArray

An array structure within a PDF document.

CGPDFObject

An object representing content within a PDF document.

CGPDFStream

A stream or sequence of data bytes in a PDF document.

CGPDFString

A text string in a PDF document.

CGPDFScanner

A parser object for handling content and operators in a PDF content stream.

CGPDFDictionary

A dictionary structure within a PDF document.

CGPDFContentStream

A representation of one or more content data streams in a PDF page.