eLivre
This is a Dart package for handling ebook files in EPUB 2.0 and 3.0 formats.
Features
- Read EPUB 2.0 and EPUB 3.0 files
- Navigate through the book structure
- Extract book metadata
- Extract book files
Getting Started
To use this package, add e_livre
as a dependency in your pubspec.yaml
file.
dependencies:
e_livre: ^1.0.4
Then, run flutter pub get
in your terminal.
Usage
Here's a basic example of how to use the package:
import 'package:e_livre/e_livre.dart' as livre;
void main() async {
final book = await livre.readBook('test/resources/epub/linear-algebra.epub');
print(book.package.metadata.title);
print(book.package.metadata.creator);
print(book.package.metadata.language);
}
Libraries
- e_livre
- features/epub/constants/epub_constants
- features/epub/entities/book/book
- features/epub/entities/book/files
- features/epub/entities/entities
- features/epub/entities/file/binary_file
- features/epub/entities/file/epub_file
- features/epub/entities/file/text_file
- features/epub/entities/package/epub_2_package
- features/epub/entities/package/epub_3_package
- features/epub/entities/package/epub_package
- features/epub/utils/extract_files
- features/epub/utils/get_book_cover
- features/epub/utils/get_epub_root_file_path
- features/epub/utils/parse_epub_package
- features/epub/utils/process_package
- features/epub/utils/read_book