Function

CGPDFDocumentCreateWithProvider

Creates a Core Graphics PDF document using a data provider.

Declaration

CGPDFDocumentRef CGPDFDocumentCreateWithProvider(CGDataProviderRef provider);

Parameters

provider

A data provider that supplies the PDF document data.

Return Value

A new Core Graphics PDF document, or NULL if a document can not be created. You are responsible for releasing the object using CGPDFDocumentRelease.

Discussion

Distributing individual pages of a PDF document to separate threads is not supported. If you want to use threads, consider creating a separate document for each thread and operating on a block of pages per thread.

See Also

Creating PDF Document Objects

CGPDFDocumentCreateWithURL

Creates a Core Graphics PDF document using data specified by a URL.