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


CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url);



The URL address at which the PDF document data is located.

Return Value

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


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


Creates a Core Graphics PDF document using a data provider.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software