This project is currently in developing.
SimplePdfViewer is mainly aimed to provide a cordova plugin to view PDF files (either local or online) in Android devices. The core part is based on MuPDF, which is a lightweight PDF and XPS viewer.
- Android TBD
- Cordova/Phonegap TBD
# ~~ from master branch ~~
cordova plugin add https://github.com/lingjunjiang/SimplePdfViewer.git
document.addEventListener('deviceready', function () {
// TODO:
//Currently, you need use the local file path
var filePath = "/storage/emulated/0/Download/sample.pdf";
SimplePdfViewer.openPDF(filePath,function(result){
console.log("SimplePdfViewer:" + result);
},function(error){
console.log("SimplePdfViewer Error:" + error);
});
}, false);
TBD
SimplePdfViewer is free software: you can redistribute it and/or modify it under the terms of the Affero GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.