简体   繁体   中英

how to get hyperlinks(URL) from Password Protected PDF on iOS 10.2

I've spent all day trying to get hyperlinks metadata from password protected PDFs in my iPad application.The CGPDF* APIs are a true nightmare, and the only piece of information I've found on the net about all this is that I have to look for an "Annots" dictionary, but I just can't find it in my PDFs.

I tried without password Protected PDF in my ipad application it works proper everything.also password protected PDF hyperlinks works proper below ios 10.2 version.

only the problem is ios 10.2 & above version

Step 1: (Download pdf reader app from below link)

https://github.com/vfr/Reader

Step 2 : (Download my custom pdf from below link)

http://docdro.id/eAtlQ8z

password : 205062PY1el8@JfoZm90gdUCMKTD!NhH5xabrvEzu7kFWq6iRO

while tap on Hyperlink getting below error:

-[ReaderContentPage annotationLinkTarget:] Bad URI '(null)'

Not an issue with iOS-10.2 version.

But, the issue is with your pdf encryption .

In this dropBox Fixed example , you can redirect to this link via browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM