Question

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?

Was it helpful?

Solution

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

[webView.preferences setPlugInsEnabled:NO];

This will disable the Acrobat plugin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top