Answers for "pdf viewer ionic 4"

0

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)
Posted by: Guest on September-07-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language