---
title: document
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfoutline/document
---

# document

Returns the document with which the outline is associated.

## Declaration

```swift
weak var document: PDFDocument? { get }
```

## See Also

### Getting Information About an Outline

- [numberOfChildren](pdfkit/pdfoutline/numberofchildren.md)
- [parent](pdfkit/pdfoutline/parent.md)
- [child(at:)](pdfkit/pdfoutline/child(at:).md)
- [index](pdfkit/pdfoutline/index.md)
