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

[pdfx] Possibility to reset scale programmatically #446

Open
sarbogast opened this issue Nov 9, 2023 · 0 comments
Open

[pdfx] Possibility to reset scale programmatically #446

sarbogast opened this issue Nov 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sarbogast
Copy link

Is your feature request related to a problem? Please describe.
I am using PdfView in 2 modes: navigation mode, where clicking left or right of the screen turns pages left or right, and zoom mode where double clicking just zooms in. But when I'm switching from zoom back to navigation mode, I would like to reset the scale so that the document shows up like it was before I activated zoom mode. Right now, the only solution is to double click until the document scale is reset and then come out of zoom mode.

Describe the solution you'd like
I would like to have a resetScale() method on PdfController or PdfViewState (made public) to reset the scale programmatically.

Describe alternatives you've considered
Weirdly, when I programmatically jump to the next page after coming out of zoom mode, it resets the scale, but I can't make it work right away.

@sarbogast sarbogast added the enhancement New feature or request label Nov 9, 2023
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

2 participants