Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add epub/pdf/mobi supporting #2

Open
zbutfly opened this issue Dec 3, 2018 · 0 comments
Open

Add epub/pdf/mobi supporting #2

zbutfly opened this issue Dec 3, 2018 · 0 comments

Comments

@zbutfly
Copy link
Owner

zbutfly commented Dec 3, 2018

I found the great lib: spub.js.

So the work is in plan....

<script src="../dist/epub.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
<div id="area"></div>
<script>
  var book = ePub("url/to/book/package.opf");
  var rendition = book.renderTo("area", {width: 600, height: 400});
  var displayed = rendition.display();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant