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 functionality? #27

Closed
1-800-jono opened this issue Aug 10, 2017 · 5 comments
Closed

Zoom functionality? #27

1-800-jono opened this issue Aug 10, 2017 · 5 comments

Comments

@1-800-jono
Copy link

Is there a way to enable controls for zoom?

@Icidus
Copy link

Icidus commented Aug 11, 2017

It doesn't look like this is in the primary documentation but if you go back to react-pdf which it was forked from you can see there is an option for scale. Using that you could set a primary state of scale: 1.0 and then a function to increase it by your desired amount each time you click on a button, like what happens in your browser.

<PDF file={this.props.pdf} onDocumentComplete={this.onDocumentComplete} onPageComplete={this.onPageComplete} page={this.state.page} scale={this.state.scale} />

@1-800-jono
Copy link
Author

Yup - working on that solution right now. Thanks man.

@guoyunhe
Copy link

guoyunhe commented Sep 5, 2017

Hope here will be more detailed document of all possible options! Thanks for the information!

@MichaelDeBoey
Copy link
Contributor

@jonathanphz Do you have any solution yet? 🙂

@mikecousins
Copy link
Owner

Is scale enough for you? Scale support is added now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants