Skip to content

PaoloMessina/RadaeeCordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RadaeeCordova Plugin

This plugin use the RadaeePDF native library for open PDF files, the plugin wrap the most important library features.

License

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

Installation

cordova plugins add https://github.com/PaoloMessina/RadaeeCordova

Configuration

iOS

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

Android

No additional configuration needed

API

Scan barcode

radaeePdf.open(params, success, error);

Arguments:

  • 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.

Example:

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

About

RadaeePDF library cordova plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published