ionic 4 pdf viewer example
Example: pdf viewer ionic 4
ionic cordova plugin add cordova-plugin-document-viewer
npm install @ionic-native/document-viewer
import { DocumentViewer } from '@ionic-native/document-viewer/ngx';
constructor(private document: DocumentViewer) { }
const options: DocumentViewerOptions = {
title: 'My PDF'
}
this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)