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

Zoom control is limited in terms of responsiveness #48

Open
vromaniv opened this issue Feb 18, 2025 · 0 comments
Open

Zoom control is limited in terms of responsiveness #48

vromaniv opened this issue Feb 18, 2025 · 0 comments

Comments

@vromaniv
Copy link

vromaniv commented Feb 18, 2025

As I understand, it is currently only possible to set:

  1. A fixed zoom level relative to the standard size of the PDF document
  2. A zoom level to fit 100% width of the container element.

What I'm trying to achieve is similar to default Mozilla PDF Viewer behaviour – set a responsive zoom level that fits the container width, but keep a few pixels of blank space on each side. In a small container, this will make the UI less crowded.

Example of what I would like to achieve

2025-02-18.17.57.52.mov

Is there any way I can implement this in the current version of the library? If not, could you please provide such ability in future updates? Thanks.

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

No branches or pull requests

1 participant