Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Invalid or Corrupted Pdf File only sometimes using Blob or Unit8Array as source #215

Open
Satyabrata-Pal1 opened this issue Feb 6, 2023 · 1 comment

Comments

@Satyabrata-Pal1
Copy link

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?

@codehippie1
Copy link
Contributor

@Satyabrata-Pal1 Could you create a mini repo where I can reproduce this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants