<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 11.0.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFDocumentAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:@T@PDFDocumentAttribute"
  },
  "title" : "PDFDocumentAttribute"
}
-->

# PDFDocumentAttribute

A structure that specifies document attributes.

```
struct PDFDocumentAttribute
```

## Topics

### Creating Document Attributes

[`init(rawValue:)`](/documentation/PDFKit/PDFDocumentAttribute/init(rawValue:))

Initialize a `PDFDocumentAttribute` structure.

### Getting Document Attributes

[`PDFDocumentAuthorAttribute`](/documentation/PDFKit/PDFDocumentAttribute/authorAttribute)

An optional text string containing the name of the author of the document.

[`PDFDocumentCreationDateAttribute`](/documentation/PDFKit/PDFDocumentAttribute/creationDateAttribute)

An optional text string containing the document’s creation date.

[`PDFDocumentCreatorAttribute`](/documentation/PDFKit/PDFDocumentAttribute/creatorAttribute)

An optional text string containing the name of the application that created the document content.

[`PDFDocumentKeywordsAttribute`](/documentation/PDFKit/PDFDocumentAttribute/keywordsAttribute)

An optional array of text strings containing keywords for the document.

[`PDFDocumentModificationDateAttribute`](/documentation/PDFKit/PDFDocumentAttribute/modificationDateAttribute)

An optional text string containing the document’s last-modified date.

[`PDFDocumentProducerAttribute`](/documentation/PDFKit/PDFDocumentAttribute/producerAttribute)

An optional text string containing the name of the application that produced the PDF data for the document.

[`PDFDocumentSubjectAttribute`](/documentation/PDFKit/PDFDocumentAttribute/subjectAttribute)

An optional text string containing a description of the subject of the document.

[`PDFDocumentTitleAttribute`](/documentation/PDFKit/PDFDocumentAttribute/titleAttribute)

An optional text string containing the title of the document.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)