The purpose of the plugin is to create a cordova plugin wrapper around http://randymcmillan.github.com/PDFViewer with a little bit of code updates taken from https://github.com/sitewaerts/cordova-plugin-document-viewer and https://github.com/vfr/Reader for iOS and https://github.com/cyberkatze/pdfViewer for Android. Feature parity is missing for the time being. This was more for getting something up and running first.
- iOS 7+
- Android 4+
- Cordova/Phonegap >=4.0.0
cordova plugin add https://github.com/cdibened/PDFViewer.git
cordova plugin rm cordova-plugin-pdf-viewer
The plugin creates the global object PDFViewer
in the window scope.
PDFViewer.openPDF(url);