Skip to content
Novus Examples
epub2.3 KB

EPUB 3 - SVG Content Document in the Spine

An EPUB 3 whose first spine item is an SVG content document rather than XHTML, followed by a chapter that explains what should have appeared. For testing readers that assume every reading-order document is XHTML.

Archive contents — 6 entriesepub
  • mimetype
  • container.xml
  • content.opf
  • nav.xhtml
  • figure1.svg
  • chapter1.xhtml

Specifications

Seed
20260807
Epub Version
3.0
Spine Items
2
Svg In Spine
true
Svg Media Type
image/svg+xml
View Box
0 0 600 800

Testing contract

Expected to pass
Scenario
Page through the book from the beginning.
Expected result
The SVG page renders as the first page of the reading order with its title and three labelled blocks; it is not skipped, downloaded, or shown as raw markup.

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.

How to use this file for testing

“EPUB 3 - SVG Content Document in the Spine” is a deterministic Novus Examples fixture for Conversion testing, HTML parsing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 20260807. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.

Code examples

ebook-convert svg-content-document.epub out.pdf   # Calibre
unzip -l svg-content-document.epub                # EPUB is a ZIP

Generated by generation/ebooks_p7.py. Free for any use, no attribution required — license.