Skip to content

lingjunjiang/cordova-plugin-pdf-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Cordova Plugin for PDF Viewer

Plugin's Purpose

This plugin is aimed to provide features for viewing PDF files (online & local) for iOS and Android platforms.

Overview

  1. Supported Platforms
  2. Installation
  3. Using the plugin
  4. Known issues

Supported Platforms

  • iOS 9+
  • Android 5+

Installation

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

Using the plugin

// Open PDF viewer with either local / online URL, e.g. 'file:///...'
window.openPdf(pdfFileUrl);

iOS

The plugin uses InAppBrowser (https://cordova.apache.org/docs/en/3.0.0/cordova/inappbrowser/inappbrowser.html) to view PDF files.

Android

The plugin uses external PDF viewers on Android device.

TODO

  • Add feature for iOS.
  • Add online pdf file support for Android

Credits

based on https://github.com/sitewaerts/cordova-plugin-document-viewer/

based on https://github.com/cyberkatze/pdfViewer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published