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
4
votes
7 answers

Setting up epub.js

Anyone using epub.js or able to understand that so-called" documentation here https://github.com/futurepress/epub.js? What is wrong with my code? I've followed step by step the documentation... What am I missing?
user4913087
4
votes
1 answer

Grabbing text from CFI position from epubjs-rn

I am currently working on a project that requires grabbing text from an epub. We are using React-Native and Futurepress epubjs-rn. Trying to Achieve: User highlights word on mobile device via longPress Highlighted text is grabbed from highlighted…
3
votes
3 answers

Encrypt the epub file

I am creating an ePub Reader App. Currently, the app can render the ePub file from local storage. But my intention is not to render the open (unencrypted) epub file but rather the encrypted one. What my app basically wants to do is download the…
Sagaryal
  • 415
  • 4
  • 15
2
votes
0 answers

The function onLocationChange(visibleLocation,cfi) does not return cfi for each page( flow="paginated") in @sbrighiu/epubjs-rn

I am currently using @sbrighiu/epubjs-rn in react native for epub file reader. In the documentation the onLocationChange function definition is as follow: onLocationChange: Function called on every page change, reports current CFI src:…
2
votes
1 answer

How do I display in HTML the cover of an epub book using epub.js?

I'm using EPUB.js and Vue to render an Epub. I want to display the cover images of several epub books so users can click one to then see the whole book. There's no documentation on how to do this, but there are several methods that indicate that…
Caleb Jay
  • 2,159
  • 3
  • 32
  • 66
2
votes
2 answers

How to bind events to the rendition in epub.js

I want to register a right click listener on the page in epub.js but don't know how to do it. There is also passEvents method of rendition object but couldn't find any help on that either. This is my last try: rendition.on("rendered", () => { …
pouya
  • 3,400
  • 6
  • 38
  • 53
2
votes
0 answers

epubjs-rn - Highlight a text in iOS

I am new to RN and to epubjs and I need some help on the best way to solve the highlighting a text. As far as I understand, once the user highlights a text, iOS shows it default "copy, define, share.." buttons. How do I disable that? Or is it…
Neelesh
  • 3,673
  • 8
  • 47
  • 78
2
votes
0 answers

ePub.js - can't open certain books

I am trying to run ePub.js on my local system using Node.js and NPM and getting issues while trying to open the ePub files. In a very basic setup, I am using their existing example of Moby-dick book at…
Anton Unt
  • 1,835
  • 1
  • 21
  • 47
2
votes
1 answer

epub.js not loading properly on IE11

I'm trying to load an epub on my page using epub.js library and its not working on IE 11, it works perfrectly on chrome and Firefox though. I'm not getting a script error, I don't get a message in the console log, fiddler says all scripts (including…
Tamim Al Manaseer
  • 3,554
  • 3
  • 24
  • 33
1
vote
0 answers

How to get the total pages of epub.js? book.locations.total return incorrect info

I have a problem while working with epub.js and react native. The return of book.locations is not corresponding to the number of pages its rendered on screen. Example in mobile view, I can see that there is total 7 pages. However, in book.locations…
1
vote
1 answer

(EPub.JS) Can't set the location of an ebook to open

I'm trying to work on having a epub / ebook show up in an html page and be able to store the user's progress on where they left off. Currently, I can store the position where they were, when they use the left/right buttons to navigate. I can see…
schizoid04
  • 888
  • 1
  • 11
  • 27
1
vote
0 answers

How to implement navigation for epubJs in Angular

So I have successfully rendered epub via epubJs in Angular now I want my select element to populate pages with href so that I can navigate to the specific Page in epub my epub on top left corner there is a select element in which I want to populate…
1
vote
0 answers

Is there a good React-Native option for paginating a large html file into a stack of adaptive screen components that the user could swipe through?

The react native App I am building needs a feature where the user can read a six thousand word booklet within the application. I would like it to have a similar user experience to reading an E-book on the kindle or apple books app. My original plan…
1
vote
0 answers

React epub using only Readium.js

In the past, I used Epub.js for my project. However, the whole epub content must be available to load the book. On researching, I found a cool library called Readium.js. Don't know how to integrate it with react.js. Can someone help me with this!!!
Shreyas BM
  • 49
  • 5
1
vote
1 answer

how to add custom fontFamily to reacr-reader npm

I'm using react-reader npm and I cant put my custom font-family in my project. Does anyone know the answer of this ? https://www.npmjs.com/package/react-reader
fatemeh kazemi
  • 516
  • 6
  • 10
1
2 3 4