How to browse pdf file from application - ios

I am developing an application which needs to upload a pdf file.
The pdf may be downloaded from any website or may be downloaded from gmail.
How can I browse the downloaded pdf from my application?
If not possible, how can I implement the same.

Related

How to upload an external file by UIWebView on an iOS application?

I am developing an iOS app and it pack the HTML5 site with UIWebView. Now it could upload images from the Photo Album and other files from "Browse" and iCould Drive.
Is there a way to let the app upload the external files from other apps? I have uploaded two screenshots as an example that opening the Notes file by another app - the Email app.
Can my app receive and upload an external file like this Mail app does?

import .doc and .pdf for my App

I am developing an application that consists of the annotation registry.
In the form, I want the user to add files like .doc .jpg or .pdf
My question is about importing pdf and doc. Where can I import them into my app?
Can I get files from DropBox, Google Drive or iCloud?
Is there somewhere on the iPhone where my files get saved and I can get them to add to my app?
I think UIDocumentPickerViewController is a proper tool for that.

Can a PDF downloaded by my iOS app be viewed by iBooks or any other application?

Right now, the PDFs I download on my app are being stored in the app's document directory and can be retrieved only within the app. Is there any way to store the PDF files in the common documents directory that can be accessed by other apps?
If not, is there a way of storing my downloaded PDFs in other apps' documents directory (let's say iBooks), so that it will always be stored in iBooks.
If there are any ways, please elaborate.
There is no "commun documents directory" on iOS, each App is launched in is own sandbox and cannot access the files from other app directly.
I suggest you to check the iOS File System Basics guide from Apple in order to understand better what's happening behind the scenes.
You can still use an UIActivityController in your code to perform an export of your pdf file to iBooks or any app accepting this kind of file, but it requires some user interaction.

PDF File Editing and Read Editable file in iOS?

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.

BlackBerry: is it possible to download application from a website (Over the Air) ?

I want would like to make my BlackBerry application available for download through a website using the BlackBerry browser. Is this possible?
There are two ways to allow your BlackBerry application to be downloaded from a website:
1.Over the Air distribution
To allow users to install the application over the air you will need to have a web server. On the web server you will need two files:
Yourapplication.cod
Yourapplication.jad
On your web server you will need to setup three MIME types:
.jad files: text/vnd.sun.j2me.app-descriptor
.cod files: application/vnd.rim.cod
.jar files (optional): application/java-archive
However, if the .cod file is larger than 64KB, it must be unzipped on the web server, otherwise you may get a "907 invalid cod HTTP error 404" error message. To do this, rename the .cod to .zip, then open the .zip file and place the file contents in the same folder on the web server alongside your .jad file. (See: https://stackoverflow.com/a/5788124/1943). Links to download your application should be to the .jad file.
2.Using the BlackBerry Application Web Loader
This is an ActiveX plugin that facilitates the download of the application. See the developer documentation for more information on this.
Reference:
Vivart's link: http://supportforums.blackberry.com/t5/Testing-and-Deployment/How-to-Deploy-and-Distribute-Applications/ta-p/442794

Resources