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