---
title: "init(_:)"
framework: coregraphics
role: symbol
role_heading: Initializer
path: "coregraphics/cgpdfdocument/init(_:)-2gtsd"
---

# init(_:)

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

## Declaration

```swift
init?(_ url: CFURL)
```

## Parameters

- `url`: The URL address at which the PDF document data is located.

## Return Value

Return Value A new Core Graphics PDF document, or NULL if a document could not be created. In Objective-C, you’re responsible for releasing the object using CGPDFDocumentRelease.

## Discussion

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 Documents

- [init(_:)](coregraphics/cgpdfdocument/init(_:)-gbq6.md)
