---
title: PDFDocumentAttribute
framework: pdfkit
role: symbol
role_heading: Structure
path: pdfkit/pdfdocumentattribute
---

# PDFDocumentAttribute

A structure that specifies document attributes.

## Declaration

```swift
struct PDFDocumentAttribute
```

## Topics

### Creating Document Attributes

- [init(rawValue:)](pdfkit/pdfdocumentattribute/init(rawvalue:).md)

### Getting Document Attributes

- [authorAttribute](pdfkit/pdfdocumentattribute/authorattribute.md)
- [creationDateAttribute](pdfkit/pdfdocumentattribute/creationdateattribute.md)
- [creatorAttribute](pdfkit/pdfdocumentattribute/creatorattribute.md)
- [keywordsAttribute](pdfkit/pdfdocumentattribute/keywordsattribute.md)
- [modificationDateAttribute](pdfkit/pdfdocumentattribute/modificationdateattribute.md)
- [producerAttribute](pdfkit/pdfdocumentattribute/producerattribute.md)
- [subjectAttribute](pdfkit/pdfdocumentattribute/subjectattribute.md)
- [titleAttribute](pdfkit/pdfdocumentattribute/titleattribute.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [PDFDocumentPermissions](pdfkit/pdfdocumentpermissions.md)
- [PDFDocumentWriteOption](pdfkit/pdfdocumentwriteoption.md)
