Questions tagged [epub.js]

Epub.js is a JavaScript library for rendering ePub documents in the browser, across many devices.

Epub.js is a JavaScript library for rendering ePub documents in the browser, across many devices.

Epub.js provides an interface for common ebook functions (such as rendering, persistence and pagination) without the need to develop a dedicated application or plugin. Importantly, it has an incredibly permissive Free BSD license.

https://github.com/futurepress/epub.js

50 questions
1
vote
0 answers

Epubjs position of text changes when resizing the book

I am building an epub reader using epubjs library in reactjs. The issue i'm facing is when i try to resize the book some contents/text from previous page render or get displayed in the current page. On initial loading of book…
Shreyas BM
  • 49
  • 5
1
vote
1 answer

How to swipe loaded epub left and right using javascript

Good day all, I want to apply swipe to my loaded epub. I used javascript to load the epub into a div, I want to be able to do swipe left and swipe right on the div. I got a jquery script to do that, but the challenge is that, it doesn't swipe on the…
Timothy Ayodele
  • 185
  • 1
  • 1
  • 9
1
vote
0 answers

Spread pairs change when using the rendition display on Epub.js

Spread pairs change when using the code like this. rendition.display(epubCFI) If you give some epubCFI to this function from second page, it takes second page right to left. It was already visible on the right. This situation changes the epub page…
omerak
  • 11
  • 4
1
vote
1 answer

Could not make epub reader show up with Epub.js from futurepress

I am building a web app where I try to display a epub reader in the page using Epub.js from futurepress. However, I could not get the reader show up even with the example book link. Could anyone tell me where I did wrong? HTML:
1
vote
1 answer

epubjs reader Rendition spread() one page is not aligned to center

Developed epub-reader component and it is working as it should work, but there are cases with some epub files, where first page of book is always aligned on left side, when normally is on center. Those alignments are setup on popup window where you…
BinaryTie
  • 281
  • 1
  • 21
  • 49
1
vote
1 answer

How to get the document total number of pages and current page numeric index in epubjs library?

I'm working on an app that is a book-reader and it is developed using epubjs-rn. I want to know how I Can get the book total number of pages and the numeric index of the current page. I will be grateful if somebody teach me this.
Elessar
  • 93
  • 2
  • 11
1
vote
1 answer

epub.js set font size

I'm using epub.js to render .epub books, but I cant set fonSize in some ebooks, it wont override existing classes with the font-size already set on the ebook; I read the documentation and the issues. Here is the source
superbem
  • 441
  • 3
  • 10
1
vote
0 answers

epub.js rendition.display() does not work

I am using epub.js in a NativeScript application. I save a CFI as a bookmark. When I reopen the book I call rendition.display(cfi) to return to the last place. In many cases it just jumps to a random place which can be 10 pages away from the right…
Ori Idan
  • 153
  • 1
  • 9
1
vote
0 answers

Reading contents from current EPUB rendition view in React-Native

I'm trying to do some stuff using react-native and epubjs-rn but I'm facing some problems. After loading the book on the app, I want to get the text or xhtml that's being currently displayed on the view. In AngularJS with the usual epubjs I could do…
Supaidaman
  • 31
  • 9
1
vote
1 answer

How to check if a selected string contains a substring of an highlight in epubjs

As the title above. Assume, I have a paragraph: It will be seen that this mere painstaking burrower and grub-worm of a poor devil of a Sub-Sub appears to have gone through the long Vaticans and street-stalls of the earth.. The bold string is a…
Wolley
  • 79
  • 1
  • 1
  • 5
1
vote
0 answers

Getting Epubjs-rn working

I can't get this library working. I've followed the directions but end up with this error at runtime. the package [...]/node_modules/epubjs-rn/package.json was successfully found. However, this package itself specifies a main module field that…
xanadont
  • 7,493
  • 6
  • 36
  • 49
1
vote
1 answer

Resources cannot be loaded from epub in epubjs

I'm using epubjs in a ionic app for a simple epub reader. I'm having a problem with the resources of the epub I need to open. When I try to load the file 48666 resources (any of the file) couldn't be loaded and when I see the dev tools in network I…
1
vote
0 answers

Footnote not working in zipped epub with library epub.js

Footnotes didn't show when book in *.epub, if it in the dir footnote is showing. My code is below:

1

eirenikos
  • 2,296
  • 25
  • 25
0
votes
0 answers

epub.js not loading epub from files read as ArrayBuffer

I am currently using epub.js to try to display epub files. I am currently reading from a file, and everything up to the epub.js part is working correctly. Here is my code:
0
votes
0 answers

How to parse text content from epub in React Native?

I am trying to figure out a way to extract the text from .epub files, but I am unsure how to do this. The closest I can get is with epubjs-react-native where I can at least get the epub files to display on the screen. import * as React from…