A PDFDestination object describes a point on a PDF page.


class PDFDestination : NSObject


In typical usage, you do not initialize PDFDestination objects but rather get them as either attributes of PDFAnnotationLink or PDFOutline objects, or in response to the PDFView method currentDestination.


Initializing a Destination

init(page: PDFPage, at: CGPoint)

Initializes the destination.

Getting Pages and Points

var page: PDFPage?

Returns the page that the destination refers to.

var point: CGPoint

Returns the point, in page space, that the destination refers to.

Getting a Relative Location

func compare(PDFDestination) -> ComparisonResult

Returns a comparison result that indicates the location of the destination in the document, relative to the current position.

Instance Properties


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 PDFBorder

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

Deprecated Annotations

These symbols are deprecated and should no longer be used.