Detailed description of issue
When I press the zoom out button and reduce the magnification to less than 100%, the text in the PDF appears blurry, is there a solution?
Expected behaviour
Text should be displayed without blurring even when the magnification is reduced to 100% or less.
Does your issue happen with every document, or just one?
Only some documents
Sorry, I can’t attach a PDF due to confidential information. Also, this only happens to certain customers of my company. In other words, I can’t reproduce the bug because it’s too difficult to reproduce.
I found a method called setCanvasMultiplier in Core, so what do you think about solving the problem by using that method to increase the resolution when the zoom out button is pressed? Is this the best approach?
Perhaps this bug is caused by a loss of resolution due to the user’s environment. So it would be better if the resolution could be increased.
As a result, I was able to solve the problem by using setCanvasMultiplier.
When the browser’s devicePixelRatio is set to 1, the PDF display is rough; trying recalculateLayout had no effect.
Question1
But there still seems to be some poor quality PDFs.
I found an article on the web that uses pdf.js with the following code to improve image quality, can something similar be done with pdf.js express? The website referenced and code are below.
Question2
I’ve displayed the PDFs I have on the demo site, but I’d like to improve the image quality. Are the PDFs displayed on the demo site rendered in the highest quality possible? If so, I can give up on the idea of not being able to increase the image quality any further with this library. I’ve also attached the PDFs I have.
It looks like that code will scale the canvas dimensions to the viewport dimensions. This may improve quality but this is not something that we have tested.
Regarding the provided PDF, I zoomed out to 80% and the text appears legible: