CGPDFScanner

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

Overview

You can set up the PDF scanner object to invoke callbacks when it encounters specific PDF operators in the stream.

This object is not derived from CFType. Use CGPDFScannerRetain and CGPDFScannerRelease to manage the retain count of CGPDFScannerRef instances; do not use CFRetain and CFRelease.

Topics

Creating a PDF Scanner Object

CGPDFScannerCreate

Creates a PDF scanner.

Retaining and Releasing PDF Scanner Objects

CGPDFScannerRetain

Increments the retain count of a scanner object.

CGPDFScannerRelease

Decrements the retain count of a scanner object.

Parsing Content

CGPDFScannerScan

Parses the content stream of a PDF scanner object.

CGPDFScannerGetContentStream

Returns the content stream associated with a PDF scanner object.

Getting PDF Objects from the Scanner Stack

CGPDFScannerPopObject

Retrieves an object from the scanner stack.

CGPDFScannerPopBoolean

Retrieves a Boolean object from the scanner stack.

CGPDFScannerPopInteger

Retrieves an integer object from the scanner stack.

CGPDFScannerPopNumber

Retrieves a real value object from the scanner stack.

CGPDFScannerPopName

Retrieves a character string from the scanner stack.

CGPDFScannerPopString

Retrieves a string object from the scanner stack.

CGPDFScannerPopArray

Retrieves an array object from the scanner stack.

CGPDFScannerPopDictionary

Retrieves a PDF dictionary object from the scanner stack.

CGPDFScannerPopStream

Retrieves a PDF stream object from the scanner stack.

Data Types

CGPDFScannerRef

A type used to parse a PDF content stream.

See Also

Opaque Types

CGBitmapContext

A type of CGContextRef that you can use for drawing bits to memory.

CGColor

A set of components that define a color, with a color space specifying how to interpret them.

CGColorConversionInfo

An object that describes how to convert between color spaces for use by other system services.

CGColorSpace

A profile that specifies how to interpret a color value for display.

CGContext

A Quartz 2D drawing destination.

CGDataConsumer

An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer.

CGDataProvider

An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.

CGFont

A set of character glyphs and layout information for drawing text.

CGFunction

A general facility for defining and using callback functions.

CGGLContext

Deprecated. A type of CGContextRef for drawing OpenGL content.

CGGradient

A definition for a smooth transition between colors for drawing radial and axial gradient fills.

CGImage

A bitmap image or image mask.

CGLayer

An offscreen context for reusing content drawn with Core Graphics.

CGPath

Immutable and mutable types for graphics paths: mathematical descriptions of shapes or lines to be drawn in a graphics context.

CGPattern

A 2D pattern to be used for drawing graphics paths.

CGPDFArray

An array structure within a PDF document.

CGPDFContentStream

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

CGPDFContext

A type of CGContextRef for drawing PDF content.

CGPDFDictionary

A dictionary structure within a PDF document.

CGPDFDocument

A document that contains PDF (Portable Document Format) drawing information.

CGPDFObject

An object representing content within a PDF document.

CGPDFOperatorTable

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

CGPDFPage

A page in a PDF document.

CGPDFStream

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

CGPDFString

A text string in a PDF document.

CGPSConverter

An object that converts PostScript data to PDF data.

CGShading

A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills.