wonday / react-native-pdf

A <Pdf /> component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Render multiple landscape pages when phone in portrait on iOS

nblumoe opened this issue · comments

Is it possible to show multiple pages of the loaded PDF when the iOS device is in portrait mode and the PDF pages are in landscape? Due to the aspect ratio, multiple pages would fit on the page.

My tests with the library so far always ended up with a single landscape page being rendered, with large margins on top and bottom. On Android however, each landscape page is rendered with the margins on top and bottom, so multiple pages fit on the screen in portrait mode.

Any way to get the same behaviour for iOS as on Android?

Yes, your suggestion is very well.
It's low priority and needs some time.
I will implement it as android in future.

Ok, thanks @wonday. Someone who reads this here might be interested that on iOS a simple WebView does render the PDF as I described (that does not work on Android though).

Thanks for publishing react-native-pdf, @wonday! 🙇

I have implemented it, please test by ver 2.0.0