setURL(_:for:)
Creates a link to an external resource defined by a URL
Declaration
func setURL(_ url: URL, for rect: CGRect)Parameters
- url:
The external URL that the user is directed to on clicking the link.
- rect:
The region of the current page that becomes the active link area, specified in points in the PDF coordinate space.
Discussion
Use this method to create links to external resources in the current page of a PDF. The URL is interpreted by the PDF viewer.
To create internal links within the current PDF document, use addDestination(withName:at:) and setDestinationWithName(_:for:).