简体   繁体   English

为什么我的自定义URI在浏览器栏中可用,而在PDF链接中却无效?

[英]Why my custom URIs work in browser's bar but not in PDF links?

I am creating an application that needs to open pdf documents from some custom URI written inside some other pdf documents. 我正在创建一个应用程序,该应用程序需要从一些其他pdf文档中编写的自定义URI打开pdf文档。

So it's like: "Custom URI in pdf" -> MyApp -> "Another pdf Document". 就像:“ pdf中的自定义URI”-> MyApp->“另一个pdf文档”。

If my custom URI is: myapp://somePage and I enter it in my Chrome Browser's address bar, it works! 如果我的自定义URI为:myapp:// somePage,并且我在Chrome浏览器的地址栏中输入了它,那么它就可以使用! :D :D

But if I input the URI in a pdf link, it doesn't... :( 但是,如果我在pdf链接中输入URI,则不会... :(

Could someone, whom I would be very grateful to, explain to me why this happens? 我能不胜感激的人能向我解释为什么会这样吗? What are the differences between a link in my browser's address bar and a link in a pdf document? 浏览器地址栏中的链接与pdf文档中的链接有什么区别?

The application currently runs and works on Android, with this feature, however, no way to make it work on windows 10... I decide to ask this very question in case it would help me to understand a bit more what happens during the process, so this is the reason why I don't give more info about the app. 该应用程序当前可以在Android上运行并在Android上运行,但具有此功能,但是无法使其在Windows 10上运行...我决定问这个问题,以防它可以帮助我更多地了解此过程中发生的情况,所以这就是为什么我不提供有关该应用程序的更多信息的原因。 :) :)

Thanks in advance for all the help you may bring. 在此先感谢您提供的所有帮助。

It's because Acrobat Reader DC, that I was using, doesn't allow custom protocol URI, for security reasons. 这是因为出于安全原因,我使用的Acrobat Reader DC不允许自定义协议URI。

https://forums.adobe.com/thread/1275025 https://forums.adobe.com/thread/1275025

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

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