Skip to content
Novus Examples
epub2.9 KB

EPUB 3 - Fixed Layout, Intentionally Invalid (no viewport meta)

An intentionally invalid fixed-layout EPUB: rendition:layout says pre-paginated but no content document declares a viewport meta, so the canvas size is undefined. Intentionally invalid and clearly labelled - for testing validators and the fallback a reader picks when it has no dimensions to scale to.

Archive contents — 7 entriesepub
  • mimetype
  • container.xml
  • content.opf
  • nav.xhtml
  • cover.png
  • page1.xhtml
  • page2.xhtml

Specifications

Seed
20260807
Epub Version
3.0
Rendition Layout
pre-paginated
Has Viewport Meta
false
Defect
pre-paginated content documents omit the required viewport meta

Testing contract

Expected to fail
Scenario
Validate the package, then open it in a reader.
Expected result
A validator reports the missing viewport declaration on both content documents; a reader falls back to a default canvas or reflows, and does not crash.

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 - Fixed Layout, Intentionally Invalid (no viewport meta)” is a deterministic Novus Examples fixture for Error handling, Conversion testing. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

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 no-viewport-meta.epub out.pdf   # Calibre
unzip -l no-viewport-meta.epub                # EPUB is a ZIP

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