I'm wondering if anyone knows of an easy way to allow for PDFs that are opened via an in-app browser I have created for the iPhone platform to be opened and saved via other PDF viewer apps. I have no problem making the in-app browser open the PDFs and allowing them to be viewed, I just can't open or save them with other apps like iZip.
When a PDF is opened in Safari, the browser automatically allows me to select which app I want to open and save the pdf in (such as iZip). When I open the same PDFs via my in-app browser, I cannot save them to iZip.
The ultimate goal is to allow people to view the pdfs in the in-app browser and let them email the PDFs to themselves. So far I haven't heard of a way to email the pdfs directly from an in-app browser, so I'm hoping that I can at least figure out how to link it out to other pdf viewers that can then be used to save and email the files.
Thanks for any help you can give me!
Related
I have a theoretical question to the file system/restriction from iOS.
In an Android app I can open a file from filesystem, with my app, and send it via mail or send it to a REST-service.
This is not possible under iOS, because there is no filesystem like under Android.
As far as I know I can only send file, which are created by my app.
Is there a way to send content from my app, which is not from my app?
For example a pdf received per mail, opened in my app and send it to a server or something else.
best regards
Yes, you can make your app eligible to open specific type of files ( images, videos, pdf, docs, etc )
see https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html
After that you bring the url file and you can work on it locally into your app, or uploading the linked file on a server as well
In case of Android when I want to send or attach a document such as a pdf or doc from my application I can easily access all the files in the external storage and share or attach.
But since iOS follows a sandbox approach as well as there is no filesystem so it is not possible to attach or upload in same manner.
In my iOS application right now, I have implemented Open In functionality, wherein in the info.plist file I have specified that my application supports all types of documents so when the user opens any documents he gets an option to Open In my application, then I save that document in the
Documents/Incoming
folder in the application, now when my user clicks to add attachment then he can see the document to attach, since this is a long process I was looking for better ones.
I saw whatsApp allows uploading/sharing from iCloud apart from that what can I do to provide a similar behaviour as Android.
I would like to redirect from my website to the AppStore to let users download my app. Afterwards, as soon as the user downloads and opens the app I need to identify it. So my question is if my website and app can read/write to the same storage/keychain/whatever. Is there a way to do that?
I'm working on a Phonegap 3.1 iOS app.
What I have currently:
I'm using the InAppBrowser plugin to view user-uploaded documents from a server.
The document types users upload are commonly (but not limited to) the following:
.pdf
.png, .gif, .jpeg
.xls, .doc, .ppt
.txt
What I want to do:
Viewing the files works well in the InAppBrowser, but now I am exploring ways that users could send the documents to each other.Mobile Safari has a share button that allows a user to send a file by airdrop, message, mail, tweet, facebook or airprint. I cannot, however, use Safari since it is a non-negotiable requirement that I do not expose the URL where these files are hosted.
The InAppBrowser allows me to hide the location from the user, which is not possible with Mobile Safari. I want to be able to email and print a document without ever exposing the url where that document lives.
Is it possible to create the same sharing mechanism from within a Phonegap app?
What I know so far
I'm aware of the Phonegap File plugin for uploading and downloading files.
If I were to download a file from the server so it was stored locally, how would I go about making it shareable (through email, airdrop, etc)?
From what I can tell, there are no relevant Phonegap 3.0+ compliant plugins to achieve this so I would think I need to create my own. Am I on the right track?
Okay, so I have an app that generates reports for a Chiropractic clinic and allows the user to print them directly from iPad assuming they have an Airprint printer. I also am in the process of writing code that will allow the user to generate a PDF of the report so that they can email it/upload it to the cloud or somehow send it to some other device that will allow them to print it WITHOUT using AirPrint.
I know about sandboxing, but I also know that you can store PDFs on an iPad and view them through iBooks.
I read here: Loading PDFs into iBooks programmatically that there wasn't a way to do so back in 2010. The guy said he would update his answer, but you know how these things are
I also have a backdoor solution here: Xcode save a PDF as Image? turning the whole darn thing into a .png
Are there any other ways?
Use UIDocumentInteractionController to present a set of options to the user. Let the user choose what they want to do with the PDF.