Universal EPUB 3 Exporter
UniversalEpub3Exporter allows compiling any parsed Book (from MOBI, AZW3, KFX, FB2, LIT, DOCX, RTF, PDF) into an official W3C EPUB 3.3 package.
use ebook_rs::{Book, UniversalEpub3Exporter};
let book = Book::from_file("input.mobi")?;let epub_bytes = UniversalEpub3Exporter::export(&book)?;std::fs::write("output.epub", epub_bytes)?;Structure Created
Section titled “Structure Created”- Uncompressed
mimetypeheader per EPUB specification. META-INF/container.xmllinking to package root.OEBPS/content.opfmanifest and spine with asset deduplication.OEBPS/nav.xhtmlEPUB 3 Table of Contents.- All XHTML spine chapter documents and embedded images.\n