comic7 library
CB7 and CBC comic parsing entry points.
Classes
- ArchiveEntry
- A physical entry of a book's container archive.
- BinaryFile
- Represents a binary book file.
- Book
- A fully parsed book, independent of its source format.
- BookCover
- A book cover: raw bytes plus the detected image type.
- BookFile
- Abstract representation of a file inside a book container.
- BookMetadata
- Format-agnostic book metadata extracted from any supported book file.
- BookStatistics
- Basic reading statistics computed from book content.
- ComicBook
- A parsed comic book (CBZ / CBR).
- ComicPageInfo
-
ComicInfo data for one image in
ComicBook.pages. - DocumentBook
- A document-backed book produced by text and office-format adapters.
- Files
- The files contained in a parsed book.
- The navigation (table of contents) of a book.
- Represents a navigation point (table of contents entry) in a book.
- ReadingOrderItem
- One entry of a book's reading order.
- TextFile
- Represents a text book file.
Enums
- BookFormat
- The book formats supported by unseal.
- ComicPageType
- A page role declared by ComicInfo.xml.
- ComicReadingDirection
- Reading direction explicitly declared by ComicInfo.xml.
Functions
-
parseCbcBook(
Uint8List bytes) → Future< ComicBook> - Parses a CBC collection and concatenates its comics in comics.txt order.
-
parseComic7Book(
Uint8List bytes) → Future< ComicBook> - Parses a CB7 (7-Zip comic) archive.
-
readCbcMetadata(
Uint8List bytes) → Future< BookMetadata> - Reads metadata from a CBC collection using the same page-resolution path as parseCbcBook.
-
readComic7Metadata(
Uint8List bytes) → Future< BookMetadata> - Reads ComicInfo.xml metadata from a CB7 archive.
Exceptions / Errors
- Comic7Exception
- Error raised while opening a CB7 or CBC comic container.
- Comic7PagesNotFoundException
- Thrown when a CB7/CBC input contains no readable image pages.
- InvalidCbcCollectionException
- Thrown when a CBC collection is missing or cannot resolve comics.txt.