iOS Developer Library

Developer

ApplicationServices Framework Reference CGPDFContentStream Reference

Options
Deployment Target:

On This Page
Language:

CGPDFContentStream Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import CoreGraphics

Objective-C

@import CoreGraphics;

The CGPDFContentStreamRef opaque type provides access to the data that describes the appearance of a PDF page. A CGPDFContentStream 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.

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

This opaque type is not derived from CFType and therefore there are no functions for retaining and releasing it.

Functions

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

    Declaration

    Swift

    func CGPDFContentStreamGetStreams(_ cs: CGPDFContentStreamRef) -> CFArray!

    Objective-C

    CFArrayRef CGPDFContentStreamGetStreams ( CGPDFContentStreamRef cs );

    Parameters

    cs

    A CGPDFContentStream object.

    Return Value

    The array of PDF content streams that make up the content stream object represented by the cs parameter.

    Import Statement

    Objective-C

    @import CoreGraphics;

    Swift

    import CoreGraphics

    Availability

    Available in iOS 2.0 and later.

  • Gets the specified resource from a PDF content stream object.

    Declaration

    Swift

    func CGPDFContentStreamGetResource(_ cs: CGPDFContentStreamRef, _ category: UnsafePointer<Int8>, _ name: UnsafePointer<Int8>) -> CGPDFObjectRef

    Objective-C

    CGPDFObjectRef CGPDFContentStreamGetResource ( CGPDFContentStreamRef cs, const char *category, const char *name );

    Parameters

    cs

    A CGPDFContentStream object.

    category

    A string that specifies the category of the resource you want to obtain.

    name

    A string that specifies the name of the resource you want to obtain.

    Return Value

    The resource dictionary.

    Discussion

    You can use this function to obtain resources used by the content stream, such as forms, patterns, color spaces, and fonts.

    Import Statement

    Objective-C

    @import CoreGraphics;

    Swift

    import CoreGraphics

    Availability

    Available in iOS 2.0 and later.

Data Types

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

    Declaration

    Swift

    typealias CGPDFContentStreamRef = COpaquePointer

    Objective-C

    typedef struct CGPDFContentStream *CGPDFContentStreamRef;

    Import Statement

    Objective-C

    @import CoreGraphics;

    Swift

    import CoreGraphics

    Availability

    Available in iOS 2.0 and later.