| Derived from | None |
| Framework | ApplicationServices/ApplicationServices.h |
| Companion guide | |
| Declared in | CGPDFContentStream.h |
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.
Creates a content stream object from a PDF page object.
CGPDFContentStreamRef CGPDFContentStreamCreateWithPage ( CGPDFPageRef page );
A PDF page object.
A new CGPDFContentStream object. You are responsible for releasing this object by calling the function CGPDFContentStreamRelease.
A CGPDFContentStream object can contain more than one PDF content stream. To retrieve an array of the PDF content streams in the object, call the function CGPDFContentStreamGetStreams. To obtain the resources associated with a CGPDFContentStream object, call the function CGPDFContentStreamGetResource.
CGPDFContentStream.hCreates a PDF content stream object from an existing PDF content stream object.
CGPDFContentStreamRef CGPDFContentStreamCreateWithStream ( CGPDFStreamRef stream, CGPDFDictionaryRef streamResources, CGPDFContentStreamRef parent );
The PDF stream you want to create a content stream from.
A PDF dictionary that contains the resources associated with the stream you want to retrieve.
The content stream of the page on which stream appears. Supply the parent parameter when you create a content stream that’s used within a page.
A CGPDFContentStream object created from the stream parameter. You are responsible for releasing this object by calling the function CGPDFContentStreamRelease.
You can use this function to get access to the contents of a form, pattern, Type3 font, or any PDF stream.
CGPDFContentStream.hGets the specified resource from a PDF content stream object.
CGPDFObjectRef CGPDFContentStreamGetResource ( CGPDFContentStreamRef cs, const char *category, const char *name );
A CGPDFContentStream object.
A string that specifies the category of the resource you want to obtain.
A string that specifies the name of the resource you want to obtain.
The resource dictionary.
You can use this function to obtain resources used by the content stream, such as forms, patterns, color spaces, and fonts.
CGPDFContentStream.hGets the array of PDF content streams contained in a PDF content stream object.
CFArrayRef CGPDFContentStreamGetStreams ( CGPDFContentStreamRef cs );
A CGPDFContentStream object.
The array of PDF content streams that make up the content stream object represented by the cs parameter.
CGPDFContentStream.hDecrements the retain count of a PDF content stream object.
void CGPDFContentStreamRelease ( CGPDFContentStreamRef cs );
A PDF content stream.
CGPDFContentStream.hIncrements the retain count of a PDF content stream object.
CGPDFContentStreamRef CGPDFContentStreamRetain ( CGPDFContentStreamRef cs );
A PDF content stream.
The same PDF content stream you passed in as the cs parameter.
CGPDFContentStream.hAn opaque type that provides access to the data that describes the appearance of a PDF page.
typedef struct CGPDFContentStream *CGPDFContentStreamRef;
CGPDFContentStream.h
Last updated: 2006-12-22