| Inherits from | |
| Conforms to | |
| Framework | Library/Frameworks/Quartz.framework/Frameworks/PDFKit.framework |
| Availability | Available in Mac OS X v10.4 and later.
|
| Declared in | PDFDestination.h |
A PDFDestination object describes a point on a PDF page.
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.
Returns a comparison result that indicates the location of the destination in the document, relative to the current position.
- (NSComparisonResult)compare:(PDFDestination *)destination
The destination in the document to be located.
A comparison result, indicating the position of the passed-in destination relative to the current position.
If destination is between the receiver’s position and the end of the document, compare returns NSOrderedAscending; if it is between the receiver’s position and the beginning of the document, compare returns NSOrderedDescending. Otherwise, if destination matches the receiver’s position, compare returns NSOrderedSame.
This method ignores the horizontal component of the destination point (the x value). If the destination’s vertical component (or y value) is kPDFDestinationUnspecifiedValue, compare treats the destination as if its y value is the top point on the destination page.
An exception is raised if destination does not have a page associated with it or if its page is associated with a document other than the receiver’s document.
PDFDestination.hInitializes the destination.
- (id)initWithPage:(PDFPage *)page atPoint:(NSPoint)point
The page of the destination.
The point of the destination, in page space.
An initialized PDFDestination instance, or NULL if the object could not be initialized.
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.
PDFDestination.hReturns the page that the destination refers to.
- (PDFPage *)page
The page referred to by the destination.
PDFDestination.hReturns the point, in page space, that the destination refers to.
- (NSPoint)point
The point, in page space, referred to by the destination.
Page space is a 72 dpi coordinate system with the origin at the lower-left corner of the current page.
PDFDestination.hConstant | Description |
|---|---|
kPDFDestinationUnspecifiedValue | Unspecified value used when a destination’s actual x or y value is unimportant. Available in Mac OS X v10.5 and later. |
Last updated: 2007-12-11