This plugin use the RadaeePDF native library for open PDF files, the plugin wrap the most important library features.
This plugin is released under the Apache 2.0 license
Only the plugin source code is under the license Apache 2.0, the library included in the plugin follow the license of his owner, please check it on: http://www.radaeepdf.com/ecommerce/technical-specification
cordova plugins add https://github.com/PaoloMessina/RadaeeCordova
1. Add #import "PDFVGlobal.h" in your AppDelegate.h
2. Add APP_Init(); in - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions of your AppDelegate.m
3. Add #import "NSObject+PerformBlock.h" in you <Project_name>.pch file
No additional configuration needed
radaeePdf.open(params, success, error);
-
params:
{ url: "MANDATORY the url of the remote pdf resource", barColor: "OPTIONAL the color of the status/navigation bar in HEX format es: #AEC7F5", showClose: "OPTIONAL specify if you want to show a close button, otherwise will be visible the bacj button default: true", title: "OPTIONAL Navigation Bar title", authToken: "oAuth token for request" }
-
onSuccess: function (message) {...} Callback for successful opening.
-
onFailure: function (err) {...} Callback for cancelled show or error.
radaeePdf.open(
{
url: "http://www.ncu.edu.tw/~ncu25352/Uploads/20131231103232738561744.pdf",
barColor: "#AEC7F5",
showClose: "false",
title: "PDF Test"
},
function(message){
console.log("evvai: " + message);
},
function(err){
console.log(err);
});
Status:
- Android: DONE
- iOS: DONE
RadaeePDF library version included:
- Android: v3.5
- iOS: v3.3.7