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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software