An optional border for an annotation, drawn completely within the annotation rectangle.


class PDFBorder : NSObject


Working with border styles and characteristics

var style: PDFBorderStyle

Sets the border style.

var lineWidth: CGFloat

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

var dashPattern: [Any]?

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

Drawing borders

func draw(in: CGRect)

Draws the border.


enum PDFBorderStyle

PDF Kit annotation borders may have the following styles.


Inherits From

See Also


Adding Widgets to a PDF Document

Add text, button, and choice widgets to a PDF document.

Adding Custom Graphics to a PDF

Create and add custom annotation and page graphics to your PDF document.

Custom Graphics

Demonstrates adding a watermark to a PDF page.

PDF Widgets

Demonstrates adding widgets—interactive form elements—to a PDF document.

class PDFAnnotation

An annotation in a PDF document.

class PDFAction

An action that is performed when, for example, a PDF annotation is activated or an outline item is clicked.

class PDFDestination

A PDFDestination object describes a point on a PDF page.

Deprecated Annotations

These symbols are deprecated and should no longer be used.