I have an app opening URLs that may be PDFs.
I can detect a PDF is opened in the UIWebView control, and if so, I propose to save it locally, in the iPad.
To date, the only solution I found (as described in this topic : Save PDF which is displayed by UIWebView locally, is to RELOAD the remote PDF file in a new NSData object, then save it to disk.
Is it possible to use the UIWebView’s NSData property, and write it directly on the disk, to avoid reloading a potentially large PDF file that is already loaded and displayed ? Thanks to all.
I think you can’t access the data that the UIWebView caches. But, you can download first the PDF and later display in UIWebView from the local PDF.
EDIT
Reading your question I understand that:
I propose you: