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

# document

Returns the document associated with a PDFView object.

## Declaration

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

## See Also

### Associating a Document with a View

- [takePasswordFrom(_:)](pdfkit/pdfview/takepasswordfrom(_:).md)
