Skip to content

Tallone/r-epub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use

let path = "demo.epub";
let extract_path = Some("demo");
let epub = EpubContainer::parse(path, extract_path).unwrap();

// Get cover
let cover = epub.cover();

// Get title
let title = epub.title();

// Get toc
let toc = epub.toc();

// Get chapter
let ch = epub.get_chapter(2).unwrap();
println!("ch: {:?}", ch);