<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/PDFBorder",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PDFKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PDFBorder"
  },
  "title" : "PDFBorder"
}
-->

# PDFBorder

An optional border for an annotation that lies completely within the annotation rectangle.

```
class PDFBorder
```

## Topics

### Working with Border Styles and Characteristics

[`style`](/documentation/PDFKit/PDFBorder/style)

Sets the border style.

[`PDFBorderStyle`](/documentation/PDFKit/PDFBorderStyle)

PDF Kit annotation borders may have the following styles.

[`lineWidth`](/documentation/PDFKit/PDFBorder/lineWidth)

Sets the line width (in points) for the border.

[`dashPattern`](/documentation/PDFKit/PDFBorder/dashPattern)

Gets the dash pattern for the border as an array of NSNumber objects.

[`borderKeyValues`](/documentation/PDFKit/PDFBorder/borderKeyValues)

A dictionary that contains a deep copy of all border properties.

[`PDFBorderKey`](/documentation/PDFKit/PDFBorderKey)

### Drawing Borders

[`draw(in:)`](/documentation/PDFKit/PDFBorder/draw(in:))

Draws the border.



---

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)