Skip to main content

Preview dustjackets, covers, and interior pages of print books before publication

Project description

Momovu

Preview margins on book PDFs before publication

Momovu is an based application for visualizing safety margins, spine widths, and dustjacket layouts on PDF documents. It helps publishers and designers ensure proper margins before sending books to print.

Momovu proofing a dustjacket

Features

  • PDF Margin Visualization: Preview safety margins on any PDF document
  • Multiple Document Types: Support for interior pages, covers, and dustjackets
  • Interactive Navigation: Zoom, pan, and navigate through pages
  • Presentation Mode: Full-screen presentation for reviewing layouts
  • Configurable Margins: Customizable safety margins and spine dimensions
  • Performance Optimized: Efficient rendering with caching and spatial indexing

Installation

System Requirements

  • Python 3.9 or higher

Dependencies (Debian)

sudo apt install python3-pip python3-venv python-is-python3

Install from PyPi

The easiest install, suit to taste:

pip install momovu

Install from Source

git clone https://spacecruft.org/books/momovu
cd momovu/
python -m venv venv
source venv/bin/activate
pip install -U setuptools pip wheel
pip install -e .

Usage

Basic Usage

# Preview margins on a PDF
momovu document.pdf

# Specify document type and page count
momovu --document cover --num-pages 300 book.pdf

# Enable debug logging
momovu --debug document.pdf

Command Line Options

$ momovu --help
usage: momovu [-h] [-D] [-v] [-V] [-n N] [-d TYPE] [-s] [-m | --safety-margins | --no-safety-margins] [-t | --trim-lines | --no-trim-lines] [-b | --barcode | --no-barcode] [-l | --fold-lines | --no-fold-lines] [-p] [-f] [PDF_FILE]

Preview margins on book PDFs before publication.

positional arguments:
  PDF_FILE              Path to the PDF file to preview margins for

options:
  -h, --help            show this help message and exit
  -D, --debug           Enable debug logging
  -v, --verbose         Increase output verbosity (can be used multiple times)
  -V, --version         Show version and exit
  -n, --num-pages N     Set number of pages for spine calculations (must be positive)
  -d, --document TYPE   Set document type for margin calculations (interior, cover, dustjacket)
  -s, --side-by-side    Enable side-by-side dual page view mode
  -m, --safety-margins, --no-safety-margins
                        Show safety margins (default: enabled)
  -t, --trim-lines, --no-trim-lines
                        Show trim lines (default: enabled)
  -b, --barcode, --no-barcode
                        Show barcode area for cover/dustjacket (default: enabled)
  -l, --fold-lines, --no-fold-lines
                        Show fold lines for cover/dustjacket (default: enabled)
  -p, --presentation    Start in presentation mode
  -f, --fullscreen      Start in fullscreen mode

Example: momovu --num-pages 300 --document cover book.pdf

Development

For main development docs, see:

To build and add to PyPi:

pip install -e .[dev]
python -m build
python -m twine upload dist/*

Links

Status

Beta - Works well. APIs may change between versions.

  • Primarily tested with US Trade and Novella sizes.
  • Works with most (all?) covers.
  • Interior documents work.
  • Covers work.
  • Dustjackets work.

License

Apache 2.0 License. See LICENSE-apache.txt for details.

This is an unofficial project, not related to any upstream projects.

Copyright © 2025 Jeff Moe

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

momovu-0.8.2.tar.gz (13.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

momovu-0.8.2-py3-none-any.whl (101.0 kB view details)

Uploaded Python 3

File details

Details for the file momovu-0.8.2.tar.gz.

File metadata

  • Download URL: momovu-0.8.2.tar.gz
  • Upload date:
  • Size: 13.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for momovu-0.8.2.tar.gz
Algorithm Hash digest
SHA256 0444c986d2ce3d3903f42988bf151c3f96a9bb73679042736ce47f5273d32470
MD5 d5b9edefd8a154c9aba6ce880fe377d4
BLAKE2b-256 9f04770297344b10b9df07b0622175469f75a4ee727924ccb1ae0872464b3c4a

See more details on using hashes here.

File details

Details for the file momovu-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: momovu-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for momovu-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e0ab5d3cdcb8bd35c20c82f4b4dbe07f8ce90392ac3531aad05778922a443d3
MD5 a4a4f0df547d6ab2cf9f025fba099657
BLAKE2b-256 1dd17332662a030d9ddce6b2887df93df9750a20f120f9f4f7c3427248e899cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page