How to display two pages on one scroll page with scaling from PDF?

I want to show pdf on the page in portait mode and display two pages when turning to landscape mode on ipad. I searched the Internet and did not find any solution. I thought of two possible ways.

1. Using webview, but I don’t know how to display two pages in one webview in webview.

2. Using the CGPDF API, read from two pages and merging with one PDF file. But I think it can be very slow and not sure if it can do it.

or any other way can solve this problem? Thank!!

+3
source share
1 answer

, UIWebView. , CATiledLayers UIView . , , iOS PDF- .

contentView View, , . , pdf, - . ( PDF )

0

Source: https://habr.com/ru/post/1754941/


All Articles