I replicate the same exact code from the documentation.
openDoc() {
const options: DocumentViewerOptions = {
title: 'My PDF'
}
this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)
}
The error I received
I replicate the same exact code from the documentation.
openDoc() {
const options: DocumentViewerOptions = {
title: 'My PDF'
}
this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)
}
The error I received
Solution:
Requires absolute path e.g. file:///… . not supported for relative…