1.0.0 • Published 7 years ago

cordova-plugin-lz-pdfviewer v1.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

PDF Viewer plugin for Cordova iOS

Use this Cordova plugin to view and share PDF files. This plugin is based vfr's open source iOS PDF viewer https://github.com/vfr/Reader.

Getting started

Once you're familiar with that process, you may install this plugin with the Cordova CLI:

cordova plugin add cordova-plugin-lz-pdfviewer 
Or
cordova plugin add https://github.com/hirtenfelder/cordova-plugin-iospreferences.git

Using the plugin

The plugin creates the object window.plugins.PdfViewer with one method showPdf(filename, title, isAllowToShare). filename is the name of the PDF file, title is the title for the PDF file (only for iPad) and isAllowToShare is to make Print, Email and Export button visible and invisiable.

A full showpdf example could be:

window.plugins.pdfviewer.showpdf('filename.pdf', 'Document Title', true);