Skip to content

ShujianDou/nim-epub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 

Repository files navigation

To open an epub to read content:

import EPUB

# Loads your EPUBs' metadata, manifest, spine.
var myEpub = LoadEpubFromDir("./yourEpublocation")
# Loads the table of contents for navigation of pages.
loadTOC(myEpub)
# Get the first "Page" object from a navigation node
let ourPage = myEpub.getPageFromNode(myEpub.navigation.nodes[0])
# Print the raw text of this Page object (ignores images) (note: currently computes text every call, does not cache)
echo $ourPage

About

An epub manipulation/creation library in Nim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages