Using web view to open and display pdf file. Actually this is an extension app. I am fetching pdf file from iphone mail app in the attachments using share extension. So far i am able to open pdf in web view but want to perform search on the pdf after opening in webview. Spent a day already but no luck so far. Tried using this link Search to highlight text in PDF using UIWebView
Kindly guide me. Hope i made my question clear.
Related
I have a website within WKWebView that has a link to open a PDF, I want to intercept this so that it brings up a share sheet to save the PDF to the iPhone files app.
New to swift so unsure how to do this, I've tried many solutions from other answers and whilst https://stackoverflow.com/a/60614921/11868620 works well, it saves it to a Documents folder linked to my app rather than the Downloads folder in the Files app.
How do I implement this functionality?
I have a requirement now, and I want to display a PPT file in my app using WebView. However, this PPT file is downloaded from other applications,When I click "open from other applications" button in other app,select own app and click Import the PPT file.Then jump to my app interface. After that, I saw this PPT file in my app sandbox/Inbox path. I want to know how this file is passed into my application sandbox? Is that perform any method? I need to intercept this process and do something.Can someone help me?
Your App Delegate is called with the URL of the sanbox/Inbox file.
See:
https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application
I am trying to open pdfs in my application using ibooks but i could not find any solution for this. I am using Appcelerator for this. Please share code with me.
You can either use the DocumentViewear (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.DocumentViewer)
or a Webview to display a PDF.
When you have opened the PDF in the DocumentViewer the user can decide
With the action button to open the PDF in the reader he wants.
To open other apps you you have to use URL schemes
(http://wiki.akosma.com/IPhone_URL_Schemes#iBooks):
Titanium.Platform.openURL('ibooks://');
I have generated pdf file programmatically through objective c language ios sdk.
links in this pdf files navigates to other page correctly in google chrome.
But not navigating correctly in adobe pdf reader 11.0.6.
What is the problem here.I have attached sample pdf files.Here is sample pdf file:
http://www.filedropper.com/mypdf1
http://www.filedropper.com/mypdf3
I have a problem that PDF file editing . From my app, when an OpenIn menu is shown, I'll choose an application to open the file PDF Expert in iphone device( ex:UIDocumentInteractionController to share with PDF Expert) and the PDF file is opened for edit in PDF Expert. But after editing, how can I send it back to my app or get the link where that editable PDF is saved ? How can I get this file?
You can't, unless you app registers it self that it can also open PDF file. Then if PDF Expert has an option the open the file in an other app the user will be able to open it your again.
There is not build in feature in the iOS SDK that lets you get a file from an other app.