Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 855 Bytes

File metadata and controls

33 lines (20 loc) · 855 Bytes

Plugin's Purpose

The purpose of the plugin is to create a cordova plugin wrapper around http://randymcmillan.github.com/PDFViewer with a little bit of code updates taken from https://github.com/sitewaerts/cordova-plugin-document-viewer and https://github.com/vfr/Reader for iOS and https://github.com/cyberkatze/pdfViewer for Android. Feature parity is missing for the time being. This was more for getting something up and running first.

Supported Platforms

  • iOS 7+
  • Android 4+
  • Cordova/Phonegap >=4.0.0

Installation

cordova plugin add https://github.com/cdibened/PDFViewer.git

Removal

cordova plugin rm cordova-plugin-pdf-viewer

Using the plugin

The plugin creates the global object PDFViewer in the window scope.

Open a Document File

PDFViewer.openPDF(url);