<!--
{
  "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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

An optional text string containing the title of the document.



---

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)