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

PDF Viewer: Fix pdf text blurry #6843

Merged
merged 54 commits into from
Sep 12, 2022
Merged

Conversation

asrient
Copy link
Contributor

@asrient asrient commented Sep 12, 2022

Viewer

full-screen, embedded

Issue

Text in rendered pdf pages are not clear.
This issue is related to the discussion on discord.

Reason & analysis

This is caused because of setting canvas height & weight to 100% (i.e adopt to the parent dimensions) causing it to wrongly scale.

Solution

Setting dimensions to 100% is required so that the page does not flicker on re-rendering (happens on zoom/resize etc).
So we only now set them when we are re-rendering and not beforehand.

Screen Shot 2022-09-12 at 8 17 58 PM

@laurent22
Copy link
Owner

Ok good, let's merge

@laurent22 laurent22 merged commit d077886 into laurent22:dev Sep 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants