I spent all day trying to get hyperlink metadata from password protected PDF files in my iPad app. The CGPDF * APIs are a real nightmare, and the only piece of information that I found on the web about all this is that I have to look for the Annots dictionary, but I just cannot find it in my PDF files.
I tried without a password. Protected PDF in my ipad application. works correctly . all.also password protected PDF hyperlinks work correctly below version ios 10.2.
the problem is only in version 10.2 and higher version
Step 1: (Download the PDF reader from the link below)
https://github.com/vfr/Reader
Step 2: (Download my own PDF link below)
http://docdro.id/eAtlQ8z
password: 205062PY1el8 @ JfoZm90gdUCMKTD! NhH5xabrvEzu7kFWq6iRO
while clicking on the hyperlink, which becomes below the error:
- [ReaderContentPage annotationLinkTarget:] Bad URI '(null)'
source
share