epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

How to check current page is first or last?

Open bleedweedsuz opened this issue 6 years ago • 2 comments

After generating pagination it is easy to check current page is 0 or 100% but before generation pagination it is difficult to check either it is first page or last.

How can we determine it is first page or last page?

My problem: Generation pagination takes time.So, I load epub first and then generate pagination second.

I added curl effect to go next or back but problem is while generating pagination i can't determine it is 0 or 100%.

Here the curl effect is just draw over webview in android. Like overlay effect while swiping left or right.

So after cover page or first page i need to stop curl to go back and also for last page i need to stop curl effect to go forward.

How can i do that?

bleedweedsuz avatar Jul 17 '18 17:07 bleedweedsuz

How do I get the total number of pages of the assigned chapters in an ebook?

suixins avatar Jan 18 '19 07:01 suixins

in start and end page, rendition.location include below

atEnd = true atStart = true

bhkim-stis avatar Dec 06 '21 11:12 bhkim-stis