PDF showing issues


#1

I’m using this code for pdf showing but nothing showing in the browser as well as devices
I use the lazy loading mechanism
please help me out

ionViewDidLoad() {
  
   const options: DocumentViewerOptions = {
      title: 'My PDF'
    }
    this.document.viewDocument('http://mydomainname.com/sourav/companyprofile.pdf', 'application/pdf', options);
  }

Any help appriciated
Thanks in advance