Contents

UIGraphicsAddPDFContextDestinationAtPoint(_:_:)

Creates a jump destination in the current page.

Declaration

func UIGraphicsAddPDFContextDestinationAtPoint(_ name: String, _ point: CGPoint)

Parameters

  • name:

    The name of the destination point. The name you assign is local to the PDF document and is what you use when creating links to this destination.

  • point:

    A point on the current page of the PDF context.

Discussion

This function marks the specified point in the current page as the destination of a jump. When the user taps a link that takes them to this jump destination, the PDF document scrolls until the specified point is visible.

If the current graphics context is not a PDF context, this function does nothing.

For information on how to create links to this destination, see the UIGraphicsSetPDFContextDestinationForRect(_:_:) function.

See Also

PDF creation