简体   繁体   English

iOS 打开 PDF 文件中的可点击链接

[英]iOS Open clickable link in PDF file

I receive a pdf file from server which has a clickable link in it.我从服务器收到一个 pdf 文件,其中有一个可点击的链接。 I want to open url via browser when tap on this link.我想在点击此链接时通过浏览器打开 url。 Pdf file is opened using UIDocumentInteractionController and it doesnot allow me to open that link. Pdf 文件是使用 UIDocumentInteractionController 打开的,它不允许我打开该链接。 Is there any way to achieve my goal?有什么办法可以实现我的目标吗?

如果您只想预览 PDF 意味着您可以使用QLPreviewController ,在此您不能像UIDocumentInteractionController那样进行共享、打印或下载,您只能查看任何文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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