PdfViewer not rendering in client computer

1 Answer 405 Views
Miscellaneous
Senthamarai A
Top achievements
Rank 1
Senthamarai A asked on 06 Jan 2023, 05:21 PM

We are in process of trying out Telerik UI for ASP.NET AJAX  PdfViewer and have observed that the demo page https://demos.telerik.com/aspnet-ajax/pdfviewer/overview/defaultcs.aspx is not correctly rendering in few machines .

 

Here is the output that we are seeing.

 

Is there a system setting that needs to be added to correct this issue?

 

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Valentin Dragnev
Telerik team
answered on 11 Jan 2023, 02:44 PM

Hello Senthamarai A,

I tested the behavior in the PdfViewer Demo, but everything looks exactly like expected on my machine. I tested it on Windows 11 machine in Еdge and Chrome. 

Still, we have other reports for this issue from our clients and colleagues. I would suggest checking the following links since the most likely reason for the incorrect rendering is a Windows update. There you can find resources from Microsoft and Google where the exact same problem occurs and how to fix it:  

If the provided suggestions didn't work and fix the problem, please check for any browser plugin/extension, that may cause the issue. You can try disabling them and see what the result is. 

If you are expecting this behavior locally on your project, that problem will be related to missing some of the needed Pdf.js references on the page as per the instructions in the Getting Started article. Please make sure that the lines below are present on the page with the RadPdfViewer.

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js"></script>
<script type="text/javascript">
    window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
</script>

 

Looking forward to your reply.

 

 

Regards,
Valentin Dragnev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Rumen
Telerik team
commented on 11 Jan 2023, 02:55 PM

Another potential reason for the problem is the used Chromium version. The PdfViewer is a wrapper of the pdf.js framework and it is bound to its core functionality. If you see the same glitches with plain pdf.js on the page as well, I am afraid there is nothing we can do to remedy the situation:

https://mozilla.github.io/pdf.js/

The pdf.js tool is developed by Mozilla Firefox and hopefully, they can fix the glitches for Chrome-based browsers as well.

Tags
Miscellaneous
Asked by
Senthamarai A
Top achievements
Rank 1
Answers by
Valentin Dragnev
Telerik team
Share this question
or