Function

CGPDFContextSetURLForRect

Sets the URL associated with a rectangle in a PDF graphics context.

Declaration

void CGPDFContextSetURLForRect(CGContextRef context, CFURLRef url, CGRect rect);

Parameters

context

A PDF graphics context.

url

A URL that specifies the destination of the contents associated with the rectangle.

rect

A rectangle specified in default user space (not device space).

See Also

Working with Destinations

CGPDFContextAddDestinationAtPoint

Sets a destination to jump to when a point in the current page of a PDF graphics context is clicked.

CGPDFContextSetDestinationForRect

Sets a destination to jump to when a rectangle in the current PDF page is clicked.