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

Sharper rendering for small sizes #1733

Open
2 tasks done
llevlion opened this issue Feb 24, 2024 · 0 comments
Open
2 tasks done

Sharper rendering for small sizes #1733

llevlion opened this issue Feb 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@llevlion
Copy link

Before you start - checklist

  • I understand that React-PDF does not aim to be a fully-fledged PDF viewer and is only a tool to make one
  • I have checked if this feature request is not already reported

Description

My document renders sharp if I set <Page scale={8} ...
but then it is displayed with huge size.
If I try to decrease width, like <Page width={prop.width/8} ...
the page displays blurry.

Proposed solution

I'd like to be able to set the width of the pdf page display and the resolution separately. Something like <Page displayWidth={x/8} scale={8} ...
should display sharper than <Page displayWidth={x} scale={1} ...
(if possible)

Alternatives

No response

Additional information

No response

@llevlion llevlion added the enhancement New feature or request label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant