---
title: PDFBorder
framework: pdfkit
role: symbol
role_heading: Class
path: pdfkit/pdfborder
---

# PDFBorder

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

## Declaration

```swift
class PDFBorder
```

## Topics

### Working with Border Styles and Characteristics

- [style](pdfkit/pdfborder/style.md)
- [PDFBorderStyle](pdfkit/pdfborderstyle.md)
- [lineWidth](pdfkit/pdfborder/linewidth.md)
- [dashPattern](pdfkit/pdfborder/dashpattern.md)
- [borderKeyValues](pdfkit/pdfborder/borderkeyvalues.md)
- [PDFBorderKey](pdfkit/pdfborderkey.md)

### Drawing Borders

- [draw(in:)](pdfkit/pdfborder/draw(in:).md)

### Initializers

- [init(coder:)](pdfkit/pdfborder/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing Annotation Display Characteristics

- [alignment](pdfkit/pdfannotation/alignment.md)
- [bounds](pdfkit/pdfannotation/bounds.md)
- [contents](pdfkit/pdfannotation/contents.md)
- [font](pdfkit/pdfannotation/font.md)
- [fontColor](pdfkit/pdfannotation/fontcolor.md)
- [border](pdfkit/pdfannotation/border.md)
- [isHighlighted](pdfkit/pdfannotation/ishighlighted.md)
- [color](pdfkit/pdfannotation/color.md)
- [hasAppearanceStream](pdfkit/pdfannotation/hasappearancestream.md)
