I'm trying to do a fairly simple thing: write the URL inside the PDF file, which can actually be clicked by the user.
I know for sure that with libharu this can be done. What I'm looking for is to do the same using Core Graphics, since all the code that I already have in my application already uses these methods.
== edit ==
I think I found something: UIGraphicsSetPDFContextURLForRect , but I can't get it to work.
I am using something like:
NSURL *url = [NSURL URLWithString:@"http://www.google.com"]; UIGraphicsSetPDFContextURLForRect( url, CGRectMake(0, 0, 100, 100));
Not directly clickable.
source share