Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
I am currently building a web app where the user will be able to view PDF files. I reproduced the same problems in Angular, and JS.
I followed the steps in this tutorial so I have a ASP .NET Core web service that can serve PDF files.
https://www.syncfusion.com/kb/11063/how-to-create-pdf-viewer-web-service-in-net-core-3-0-and-above
Loading a PDF in the viewer works, when the file exists on my server.
However, I have 2 problems, which may be a bug or something I have to handle in my code. I put both problems in one image because I wasn't able to add 2 screenshots.
return Content(jsonObject["document"] + " is not found");
2- If I change my PDFViewer's document's quickly (2-3 times in a second), the pdfviewer control hangs forever. I have to kill my browser's tab. You can see in my screenshot that, just before the browser hangs, the server reply 3 to my browser. I don't know why it's like this, but it always display 3 before crashing.
By the way, my PDF files are big. So you may need big PDF files to reproduce this.
Thanks,
Pascal