An optional border for an annotation, drawn completely within the annotation rectangle.
SDKs
- iOS 11.0+
- macOS 10.4+
- Mac Catalyst 13.0+
Framework
- PDFKit
Declaration
class PDFBorder : NSObject
An optional border for an annotation, drawn completely within the annotation rectangle.
SDKs
Framework
class PDFBorder : NSObject
var style: PDFBorder Style
Sets the border style.
var line Width: CGFloat
Sets the line width (in points) for the border.
var dash Pattern: [Any]?
Gets the dash pattern for the border as an array of NSNumber objects.
func draw(in: CGRect)
Draws the border.
enum PDFBorder Style
PDF Kit annotation borders may have the following styles.
Add text, button, and choice widgets to a PDF document.
Create and add custom annotation and page graphics to your PDF document.
Demonstrates adding a watermark to a PDF page.
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.
These symbols are deprecated and should no longer be used.