How can we display PDF Files on BB/iOS/Android and Windows phone by using MobileFirst (MobileFirst Studio) ? These PDF actually exists in DB as binary files.
Is there any API given by IBM?
MobileFirst does not (and should not) provide API to display a PDF file.
I am not sure this will possible in BlackBerry, but you can google for BlackBerry API or Cordova API to display it.
As for Windows Phone it seems that if you will provide a direct URL to the PDF file the default PDF reader should be able to display it, according to: Opening a PDF file in Windows Phone - so that means you can use the window.open JS API to open the URL to the PDF file.
Related
I am using Axway AppceleratorStudio sdk version 7.5.0.GA on Android and IOS.
I am rendering remote websites using the webview component.
The website has a file URL that when clicked should download the file (usually pdf or excel).
I am unable to download the file within the webview to the mobile device. The same link works on the mobile web browser.
On IOS the file gets downloaded and displayed within the webview itself which is not what i want. I would like the file to be downloaded to the device storage.
On Android clicking the download link does nothing even though I have the storage permissions enabled (WRITE_EXTERNAL_STORAGE)
Any suggestions?
Try to intercept the click (eg. beforeLoad event) pause it and download the file with a normal HTTPClient inside Titanium.
In my web app, User need to upload doc or pdf file from Mobile or Tablet browser [Android & IOS].
It's fine in Android, But IOS now allowing to access file system except images for uploading using safari.
I am searching for alternative ways and need solution without jail breaking, but i can't find one.
I am using the cordova 3.4.0 and trying to upload a file, using the file transfer and file api plugins given by cordova, but i am not able to open the file browser window, in order to select the file to upload. How do i open the file browser window in android using the corodva
I used an Input tag in my html, like so:
<input type='file' id='fileInput'>
And then when it is clicked on the Android device, I get a pop-up asking me which file browser I want to use. My Galaxy S3 gives me seven choices (one of which is a downloaded app), and the Panasonic ToughPad I'm developing for gives me three (one of which is the same downloaded app I have on the phone).
I do not know if it is possible to get it to automatically select one in particular - for me, choosing a file manually is supposed to be a temporary need, as eventually the app is supposed to load specific files automatically.
I am developing an web+cross platform app using Jquery Mobile+PhoneGap+Android. In web app, I am able to open pdf file links within my app page using iframe. But, in Phonegap generated Android build, iframe is unable to render pdf content,it is showing that iframe area as empty.How can I display the pdf file/content, whose src I know at runtime, within android webview. Thanks In Advance.
I've just published my plugin, which can open almost any type of file, which is stored locally on Android device.
Please take a look at: https://github.com/markeeftb/FileOpener
Plugin opens external application which handles the preview of the document.
I have an android application that needs to display the pdf files. For this I am using Adobe PDF reader intent and pass the file path to it.
It works fine when the pdf file is present on the sdcard but I am not able to view the pdf file when it is placed on web (i.e. http://www.myweb.com/pdfs/mypdf1.pdf).
Any idea how to do this?
Adobe Reader on Android does not seem to support this feature so far, as it is really simple.
Maybe you could try Adobe Air, but I am not sure the version on Android supports .pdf.
If not, I suggest you could pass the Intent to the browser, and the browser will download it, and then it can be displayed. Maybe there will be some browser that can open .pdf directly as those do on computer, but I am not aware any.