Instance Method

initWithPage:atPoint:

Initializes the destination.

Declaration

iOS, Mac Catalyst
- (instancetype)initWithPage:(PDFPage *)page atPoint:(CGPoint)point;
macOS
- (instancetype)initWithPage:(PDFPage *)page atPoint:(NSPoint)point;

Parameters

page

The page of the destination.

point

The point of the destination, in page space.

Return Value

An initialized PDFDestination instance, or NULL if the object could not be initialized.

Discussion

Specify point in page space. Typically, there’s no need to initialize destinations. Instead, you get them from PDFAnnotationLink, PDFOutline, or PDFView objects.

Page space is a 72-dpi coordinate system with the origin at the lower-left corner of the current page.