How to get hyperlinks (URLs) from password protected PDF on iOS 10.2

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)'

+4
source share
1 answer

Not a problem with version iOS-10.2.

But the problem is your PDF encryption .

In this dropBox fixed example , you can redirect to this link through a browser.

+1
source

Source: https://habr.com/ru/post/1668721/


All Articles