cordova-plugin-simple-pdf
v1.1.1
Published
Simple PDF viewer for iOS
Downloads
5
Maintainers
Readme
Simple iOS PDF viewer for Cordova
Description
Sure, you can find a handful of iOS PDF viewers but none of them is simple. The closest thing you can get to simple is loading documents using the InAppBrowser
plugin, however, the InAppBrowser
plugin won’t let you share/export documents, but this plugin will.
At the moment, this plugin only supports iOS devices but we plan to extend it shortly and add support for Android devices as well.
Install
We assume you have a current installation of Cordova or Ionic or PhoneGap—you know how it is.
cordova plugin add cordova-plugin-simple-pdf
How easy was that?
Usage
This plugin doesn’t include a JavaScript module file for now, so if you want to use it, you will have to launch your PDF using the following command:
cordova.exec( function(res){
// Success callback
}, function(err){
// Error callback
}, 'SimplePDF', 'showPDF', [ {path}, {title} ] );
Don’t forget to replace {path}
and {title}
.
License
The MIT License
Copyright (c) 2008-2016 Betamark
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.