CGPDFContentStream

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

Overview

A CGPDFContentStreamRef object represents one or more PDF content streams for a page and their associated resource dictionaries. A PDF content stream is a sequential set of instructions that specifies how to paint items on a PDF page. A resource dictionary contains information needed by the content stream in order to decode the sequential instructions of the content stream.

CGPDFContentStreamRef functions can retrieve both the content streams and the resource dictionaries associated with a PDF page.

This type is not derived from CFTypeRef and therefore there are no functions for retaining and releasing it. CGPDFContentStreamRef objects exist only as constituent parts of a CGPDFDocument object, and they are managed by their container.

Topics

Creating a PDF Content Stream Object

func CGPDFContentStreamCreateWithPage(CGPDFPage) -> CGPDFContentStreamRef

Creates a content stream object from a PDF page object.

Getting Data from a PDF Content Stream Object

func CGPDFContentStreamGetStreams(CGPDFContentStreamRef) -> CFArray?

Gets the array of PDF content streams contained in a PDF content stream object.

Retaining and Releasing a PDF Content Stream Object

func CGPDFContentStreamRetain(CGPDFContentStreamRef) -> CGPDFContentStreamRef

Increments the retain count of a PDF content stream object.

func CGPDFContentStreamRelease(CGPDFContentStreamRef)

Decrements the retain count of a PDF content stream object.

Data Types

typealias CGPDFContentStreamRef

An opaque type that provides access to the data that describes the appearance of a PDF page.

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.

CGPDFOperatorTable

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