!!! This plugin is no longer maintained. For a cross platform pdf viewer take a look at pdf.js !!!
Sample app for https://github.com/sitewaerts/cordova-plugin-document-viewer.
- iOS 6+
- Android 4.1+
- Windows 8.1
- Cordova/Phonegap >=3.7.0
https://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-Line%20Interface
Check out the sample app and the viewer plugin to the same base directory
git clone https://github.com/sitewaerts/cordova-plugin-document-viewer-sample-app.git
git clone https://github.com/sitewaerts/cordova-plugin-document-viewer.git
JAVA_HOME should point to a jdk 1.8 directory.
Open a command prompt and go to the directory where you checked out the projects
cd cordova-plugin-document-viewer-sample-app
create_app.bat
run_app.bat
Whenever you change something in the app or the plugin sources:
update_app.bat
run_app.bat
same as above with .sh instead of .bat files
you may have to execute "chmod +x [filename]" for each of the scripts first
If you want to run the app from an IDE like Xcode/Eclipse/VisualStudio but work on html/js/css in root www directory:
- create_app.sh|bat (only once)
- update_app.sh|bat (this reinstalls the linked plugins)
- prepare_app.sh|bat (this migrates src changes in project root to the folders in the IDE project)
- run App from IDE