We are using Kendo MVC version: 2021.3.1109.545
When we tried to open the PDF file from the application using PDF viewer, we can see the fonts getting blurred and fuzzy as shown below.
Hello Sujeet,
Thank you for your report.
I have tested the PDFViewer component configured to use PDF.js processing locally, and it appears that the text is rendered as expected at my end, when the PDF file is loaded. I am attaching a runnable ASP.NET MVC application for your reference that uses Telerik UI for ASP.NET MVC version 2021.3.1109 and the following PDFViewer declaration:
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
<script>
window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
</script>
<div id="example">
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.PdfjsProcessing(pdf => pdf.File(Url.Content("~/Content/Document.pdf")))
.Height(1200)
)
</div>
Would you please modify the sample application based on your PDFViewer configuration to replicate the blurred text rendering and send it back in the thread for review?
Alternatively, please consider sharing the PDFViewer configuration at your end along with the PDF file. I will review them and follow up with more information regarding the matter.
Also, would you try to load the same file in the demo below that uses the latest version, and let me know if the text is still blurred?
https://demos.telerik.com/aspnet-mvc/pdfviewer
Thank you for your cooperation.
Regards,
Mihaela
Progress Telerik
Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024