We have a need to embed PDF reader in one of our custom built Android (or PhoneGap Plugins) tablet application from local directory (Sdcard). Embed meaning is not just display pdf document inside the application instead we have to tap the following API functionalities programmatically:
1) Retrieve pdf document meta data i.e. Page Size, Author, Date Created
2) Tap next and previous page click and implement our custom handler code
3) Zoom, Pinch, page swipe etc.
1) Can someone help us or give direction to achieve the above use cases using Adobe Acrobat reader (Adobe Reader Mobile 9 SDK)?
2) Whether Adobe Reader Mobile 9 SDK exposes API to program against? The FAQ section doesn’t talk about the API for the above mentioned use case
We have spent time in googling & StackOverflow mining to find the possibilities but no luck. What was our conclusion after the analysis is we have to go for open source or commercial embeddable pdf sdk’s i.e.
• Mozilla’s Pdf.JS
• Android Pdf Viewer Library
• Foxit pdf viewer library
• Radaee.pdf, Embeddable Mobile PDF SDK
• The Adobe Reader Mobile SDK
We have tried the above mentioned libraries and below are our experience
Mozilla’s Pdf.JS – It is a JavaScript solution and exposes API for all of our need but fails to render the PDF for some cases whenever some special embedded font is missing and in such cases the application crashes. Other than this single issue it very promising and superb. Still it is in beta stage.
Android Pdf Viewer Library – We have built a Custom Intent (PhoneGap Android Plugins) but it is very slow and fails in many cases. We felt PDF.JS is much better than Android Pdf Viewer Library
Radaee.pdf – Currently exploring. The Knowledge base is very poor and not enough samples to move forward
Foxit pdf viewer library – Unable to download the SDK from the URL they sent in the email after registering with Foxit. Though the link says PDF SDK but it downloads only the pdf reader. We sent an email to their sales team and awaiting their response.
The Adobe Reader Mobile SDK – SDK is not available to download, one need to get it through their re-sellers. We sent a request to them and awaiting for their callback
o Datalogics
o Bsquare
o Bluefire
Appreciate your response & support
Please try ProCore Mobile SDK (http://www.mobilepdfsdk.com). They say that you can embed PDF reader in 5 lines.
You can check RadaeePDF-Cordova Plugin and do the following to add it:
Create the app using the demo package name, to be able to test all
the features (standard, professional and premium).
cordova create RadaeePDF-Cordova com.radaee.reader RadaeePDF-Cordova
Add the android/iOS platform.
cd RadaeePDF-Cordova
cordova platform add android --save and/or cordova platform add ios --save
Add the plugin.
cordova plugin add https://github.com/gearit/RadaeePDF-Cordova.git --save
Build the app. cordova build
Related
Which open source API/SDK used to create an app just like zoom or gotomeeting. In which I used (video chat, audio chat, text chat and screen sharing)?
Hi you can try below SDK hope it will help you
Click on below link and download android SDK
Open Peer SDK
There is few open source but every one of those have some issue.
Simplewebrtc www.simplewebrtc.com
Don't have android SDK. but its good in web and ios.
Easyrtc www.easyrtc.com
Web is free but they charge for ios and android SDK.
Openpeer www.openpeer.org
This is quite good they have all ios, android and web api.
Intending to view a PDF File from the Hybrid Mobile App , created using HTML5 Jquery and Packaged with Phonegap.
But unable to achieve it ,
Things i tried
<object src="xyz.pdf" type="application/pdf"></object>
also,
window.open('xyz.pdf'); //through javascript
and
$(document).load('xyz.pdf');
Can anyone suggest the best way for viewing the PDF in a Hybrid Android Mobile App.
with cordova you must think about these:
HTML 5 object tag: not working
If you try with:
window.open('http://www.???.com/my.pdf', '_blank', 'location=yes');
The InAppViewer can´t open this kind of files.
I think that there aren't an hybrid solution for this problem.
You must start to search or write about a plugin that use a native pdf's opening and then use it.
An example:
cordova-plugin-file-opener
The latest solution, a little more simple but include to open google docs is:
window.open('https://docs.google.com/viewer? url=http://www.example.com/test.pdf&embedded=true', '_blank', 'location=yes');
ref = window.open('index.html', '_self');
Go look at the Mozilla pdfJS project.
This project allows you to open a pdf (embedded in app or remote) in your app. No break-out links that relies on native viewers.
They also give you a very full featured sample viewer, that you can use as is, but much of functionality in that does not apply to mobile applications.
I have had success with this on Android 4.3 Devices.
Try installing the InAppBrowser plugin to do so. I have use it to open PDF files right inside the app on both iOS and Android.
Check the official InAppBrowser doc with full doc and examples, it has several options you can enable/disable (be sure to point to your current cordova version documentation):
My solution for connected apps with offline availability...
window.open('http://www.someserver.com/doc.pdf', '_system')
...this will open in default pdf viewer. I have my clients use adobe reader for obvious reasons. And also because once it is downloaded the first time, adobe app manages and edits the documents well, and the documents are also available offline from within adobe reader thereafter. Even pdf forms.
Have cordova.js linked on the page.
Have inAppBrowser added.
For full offline you may try FileOpener plugin. I have not needed to do that on android, but I have used that way in iOS.
Hope any of this may help.
Though am late here, still want to share what I know. You can use this plugin to view PDFs in the app (without inappbrowser). Supports only Android and iOS.
I am new to PhoneGap and Mobile Application Development. I want to create an application using PhoneGap so that I can get Android, iOS, BlackBerry versions of the same app.
I have installed PhoneGap in my windows 7 Desktop using tutorials given in https://www.youtube.com/watch?v=nqFpfrUrMM4
I have some questions regrading PhoneGap:
Can we create multiple pages(HTML Files) or we only have index.html single file?
Can we use jQuery UI plugins, Mobile jQuery UI and other iQuery plugins? Will PhoneGap cloud service be able to convert to mobile app?
I have created Hello World example and uploaded zip file to PhoneGap and it converted to Android, Windows app but for iOS app it shows error certificate(P12) and provisioning file. I have windows 7, how can I get that legally? (My friend has Mac book. I can use it)
I want to launch app to Play market and iTunes but I have no idea what I need to do after uploading zip to phonegap.
I will really appreciate if you can provide me with the suggestions, steps that I need to take or links that would ease whole process.
Thanks!
You can make multi-page apps with PG. All of my apps are.
You can use those plugins. If they work on a regular web site, they'll work in PhoneGap. PhoneGap Build should be able to package all the scripts as one app, as long as the content is within their guidelines.
You need a Mac to get it. This page gives a lot of directions: http://centuryware.wordpress.com/2014/10/30/how-to-create-and-test-ios-apps-on-phonegap-build/
You'll need to sign up for a Developer account at https://developer.apple.com/devcenter/ios/index.action to upload an app there, and a Google Play account at http://developer.android.com/index.html to upload to that store. Once you sign up, read their docs. It can get pretty involved on the Apple side.
I am making a Hybrid Application using cordova-cli. My requirement is that the first page in my application must redirect to a website. The entire data required for the application will be loaded into this website from some other data-sources.
The requirement is to access device native features such as camera, accelerometer etc. from pages on this website.
I am using
location.href="http://www.example.com";
to open the pages. I need a unified cordova.js file with all the plugins embedded into it.
Currently I am putting the individual plugins into the lib\android\plugin\android and by using the grunt -f command from grunt-cli, the cordova.js file recieved for android does not seem to produce expected results.
Can't be done I am afraid - because of the way Cordova interacts with the device.
What happens if, using a non-mobile device, you accessed the same website from elsewhere? The website will not know what on earth Cordova is.
Cordova interacts with the native code on the device, so requires this to handle the passing of JS-to-native, and vice-versa.
I am developing a cross-platform application. I came across Phonegap, which supports several mobile devices. But I am new in this field so I'm facing some issues.
I have a requirement, where the user downloads video files from a server and then opens those from local storage from mobile.
So how to achieve this using Phonegap, which should support iOS, Android and Windows.
I have already gone through:
Phonegap - jQuery Mobile - Download/Save/Load File
http://docs.phonegap.com/en/2.0.0/cordova_file_file.md.html#LocalFileSystem
But I'm not getting proper documentation/tutorial. If there are any examples available then it would be helpful to check/debug.
Thanks in advance.
A search on SO shows that on Android there are some issues with HTML5 video and Phonegap:
Phonegap 2.3 and Android with HTML5 video tag in 2013
At least in Window Phone 7 there are some tricks as well (storage path related).
How to play embedded video in WP7 - Phonegap?
Which may explain why there isn't a single multi-platform example which is what I think you are looking for.