EPUB — Intentionally Invalid (bad OCF mimetype)
An intentionally invalid EPUB: identical to the valid twin except its OCF mimetype entry is compressed and mislabelled as application/zip — a real EPUB spec violation. For testing how readers and validators handle a malformed container. Clearly labelled; harmless content.
- mimetype
- container.xml
- content.opf
- nav.xhtml
- style.css
- cover.xhtml
- cover.png
- chapter1.xhtml
- chapter2.xhtml
- chapter3.xhtml
Specifications
- Format
- EPUB (invalid OCF)
- Defect
- mimetype entry is compressed and set to application/zip
- Chapters
- 3
- Otherwise Valid
- true
What is a .epub file?
EPUB is the open e-book standard, a ZIP archive containing XHTML content documents, CSS, images, and a package manifest describing reading order and metadata. It supports reflowable text that adapts to screen size and is supported by most e-readers except Kindle natively. It is the dominant format for distributable e-books.
How to use this file
Use an example EPUB to test e-book parsing, ZIP-package and manifest handling, reading-order and metadata extraction, and rendering in e-reader applications.
Related files
- azw3AZW3 — Kindle KF8 E-bookThe valid EPUB converted to AZW3 (Kindle KF8) with Calibre — the modern Kindle format. For testing AZW3 readers and EPUB→AZW3 conversion.
- cbzCBZ — Comic Book ArchiveA CBZ comic archive — a ZIP of sequentially named JPEG pages, the standard container for digital comics. Built from generated pages; for testing comic readers and CBZ→PDF conversion.
- fb2FB2 — FictionBook E-bookA FictionBook (FB2) e-book — a single self-contained XML file with full title and document metadata and three chapters. Popular in e-reader ecosystems; for testing FB2 parsers and FB2→EPUB conversion.
- mobiMOBI — Kindle E-bookThe valid EPUB converted to MOBI (Mobipocket) with Calibre — the classic Kindle format. For testing MOBI readers and EPUB→MOBI conversion.
- png16-bit Grayscale PNG (deep colour)A 16-bit (deep-colour) grayscale PNG holding a smooth 0–65535 gradient — for testing high-bit-depth support and spotting banding when a tool truncates to 8-bit.
- 3gp3GP — Mobile H.264 ClipThe clip as 3GP — the 3GPP mobile container from the feature-phone era. For testing 3GP demuxing and conversion.
Generated by generation/ebooks.py. Free for any use, no attribution required — license.