Skip to content

lingjunjiang/SimplePdfViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Plugin - Simple PDF Viewer for Android

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.

Overview

  1. Supported Platforms
  2. Installation
  3. Using the plugin
  4. License

Supported Platforms

  • Android TBD
  • Cordova/Phonegap TBD

Installation

# ~~ from master branch ~~
cordova plugin add https://github.com/lingjunjiang/SimplePdfViewer.git

Using the plugin

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);

Common Arguments

TBD

License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •