Platforms to show: All Mac Windows Linux Cross-Platform

Back to PDFDestinationMBS class.

PDFDestinationMBS.compare(dest as PDFDestinationMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a comparison result that indicates the location of the destination in the document, relative to the current position.

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.

Available in Mac OS X v10.5 and later.

PDFDestinationMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new object based on a given PDFDestination handle.

Please pass in a non zero handle which points to a PDFDestination object.
For use with declares.

See also:

PDFDestinationMBS.Constructor(page as PDFPageMBS, point as NSPointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes the destination.

page: The page of the destination.
point: The point of the destination, in page space.

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.

Available in Mac OS X v10.4 and later.

See also:

PDFDestinationMBS.copy as PDFDestinationMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the destination object.

PDFDestinationMBS.point as NSPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method PDFKit MBS PDFKit Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the point, in page space, that the destination refers to.

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

Available in Mac OS X v10.4 and later.

The items on this page are in the following plugins: MBS PDFKit Plugin.


The biggest plugin in space...