Reputation: 2545
I need to display e-pub books, so I used a webview to display the e-pub book and I am able to display the book chapter-wise instead of page-wise. Can anyone please help me so that i can paginate the epub
Upvotes: 2
Views: 1097
Reputation: 9493
To paginate ePub, you have to extensively use WebView and column layout with custom CSS. Here is a typical workflow for each chapter:
width
and height
;<script src="[local path]"></script>
tag;div
tag using DHTML;column-width
set for that div
tag;clientWidth / width
.Then, you can use the same technique to render ePub into UIViewController, but this time on screen. While rendering how many pages are in ePub, you may want to display a progress indicator.
Upvotes: 2