<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFOutline/init()",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFOutline(im)init"
  },
  "title" : "init()"
}
-->

# init()

Initializes a `PDFOutline` object.

```
init()
```

## Discussion

If you want the `PDFOutline` object returned by this method to be the outline root, you must add additional `PDFOutline` objects to create the outline hierarchy you desire. Then, you must add the root outline object to your PDF document by passing it to the `PDFDocument` `setOutlineRoot(_:)` method.

If you want the `PDFOutline` object returned by this method to be a child of an existing outline, you must use `setLabel(_:)` to give it a label and give it either a destination or action using `setDestination(_:)` or `setAction(_:)`, respectively. In addition, you must add this outline object to the existing `PDFOutline` object as a new child, using [`insertChild(_:at:)`](/documentation/PDFKit/PDFOutline/insertChild(_:at:))

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)