I am using the WebView class from WebKit to display a PDF document.

I am creating an instance of NSURLRequest and passing it the URL to the PDF.

The PDF document does not display when Adobe Acrobat is installed on the system. Uninstalling Acrobat fixes the issue.

When Acrobat is installed, a white screen with a loading bar is shown: enter image description here

When Acrobat is not installed, the PDF is shown:

enter image description here

How can I fix this and get it to work with Acrobat installed?

有帮助吗?

解决方案

Access the preferences property of the WebView, and disable plugins.

[webView.preferences setPlugInsEnabled:NO];

This will disable the Acrobat plugin.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top