Function

UIGraphicsAddPDFContextDestinationAtPoint

Creates a jump destination in the current page.

Declaration

void UIGraphicsAddPDFContextDestinationAtPoint(NSString *name, CGPoint point);

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

UIGraphicsBeginPDFContextToData

Creates a PDF-based graphics context that targets the specified mutable data object.

UIGraphicsBeginPDFContextToFile

Creates a PDF-based graphics context that targets a file at the specified path.

UIGraphicsEndPDFContext

Closes a PDF graphics context and pops it from the current context stack.

UIGraphicsBeginPDFPage

Marks the beginning of a new page in a PDF context and configures it using default values.

UIGraphicsBeginPDFPageWithInfo

Marks the beginning of a new page in a PDF context and configures it using the specified values.

UIGraphicsGetPDFContextBounds

Returns the current page bounds.

UIGraphicsSetPDFContextDestinationForRect

Links a rectangle on the current page to the specified jump destination.

UIGraphicsSetPDFContextURLForRect

Links a rectangle on the current page to the specified URL.