How to dynamically split EPUB XHTML pages on Android?

I extracted the EPUB files in XHTML and showed them in WebView. But when I want to show them in WebView, it displays the whole page. So this is not like a book. I want to split pages according to screen size. Is it possible? Or how can EPUB viewers analyze pages and show only part of them?

Thanks.

+4
source share
1 answer

The most common way to implement pagination in a web browser is to use CSS3 columns , make each column the width of the viewport, and move the content back and forth across the viewport as user pages on the right or left. The original version of Readium is an example of this implementation .

+2
source

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


All Articles