react-pdf-viewer icon indicating copy to clipboard operation
react-pdf-viewer copied to clipboard

Ability to define custom zoom levels

Open AlexanderNo opened this issue 5 years ago • 2 comments

Feature request

It would be nice to have the ability of customising the hard coded zoom levels. E.g. I want to only provide more or less options for the level selection.

Code reference

https://github.com/react-pdf-viewer/react-pdf-viewer/blob/ef6fbd127a0f5ae13ed54c84f55de25ff012fcf1/packages/zoom/src/ZoomPopover.tsx#L27

Related issue

We're having issues "rendering" the pdf on an iPad with 300% or 400% zoom level. The pdf is not shown at all, but returns when reducing the zoom level to 200% or less. Tested on iPad with Safari 14 and 15. No related error message is shown in the console though.

AlexanderNo avatar Oct 15 '21 17:10 AlexanderNo

That's a great suggestion, @AlexanderNo ❤️ I will support it.

phuocng avatar Oct 16 '21 05:10 phuocng

@AlexanderNo Please upgrade to the v2.10.1. I also added new example here https://react-pdf-viewer.dev/examples/customize-the-zoom-levels/

Let me know if you need anything else.

phuocng avatar Oct 19 '21 13:10 phuocng