<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPDFStructureElement/Attributes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "s:So24CGPDFStructureElementRefa12CoreGraphicsE10AttributesV"
  },
  "title" : "CGPDFStructureElement.Attributes"
}
-->

# CGPDFStructureElement.Attributes

The accessibility and presentation attributes of a structure element.

```
struct Attributes
```

## Overview

The underlying tagged-PDF API accepts these attributes only at creation
time, so they are supplied as a value when constructing a
`CGPDFStructureElement` rather than mutated afterwards.

## Topics

### Initializers

[`init(title: String?, language: Locale.Language?, alternativeText: String?, expansionText: String?, actualText: String?)`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/init(title:language:alternativeText:expansionText:actualText:))

### Instance Properties

[`var actualText: String?`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/actualText)

Text that is an exact replacement for the element and its children,
used when extracting the document’s contents.

[`var alternativeText: String?`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/alternativeText)

An alternate description of the element and its children, typically
used for graphical content such as an image.

[`var expansionText: String?`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/expansionText)

The expansion of an abbreviation or acronym.

[`var language: Locale.Language?`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/language)

The natural language of the element’s content, used when it differs
from the document’s language.

[`var title: String?`](/documentation/CoreGraphics/CGPDFStructureElement/Attributes/title)

A human-readable title for the element. Presentational only; it
should not be relied upon for accessibility.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)