Usage is as follows
ngAfterViewInit(){
this.PdfViewer.pdfSrc = this.url;
this.PdfViewer.refresh();
}
ngOnChanges()
{
if(refreshRequired){
this.PdfViewer.pdfSrc = this.url;
this.PdfViewer.refresh();
}
}
Thing is the pdf loads fine most of the time, but sometimes it gives the error - Invalid Pdf Structure
On checking the get request for the blob , it returns 200Ok
But the response has a Html page and the pdf does not load.
What is the solution to this?
Usage is as follows ngAfterViewInit(){ this.PdfViewer.pdfSrc = this.url; this.PdfViewer.refresh(); } ngOnChanges() { if(refreshRequired){ this.PdfViewer.pdfSrc = this.url; this.PdfViewer.refresh(); } }
Thing is the pdf loads fine most of the time, but sometimes it gives the error - Invalid Pdf Structure On checking the get request for the blob , it returns 200Ok But the response has a Html page and the pdf does not load. What is the solution to this?