explaingit

0xh4ku/manga-pdf-to-epub

Analysis updated 2026-06-24

60PythonAudience · generalComplexity · 2/5Setup · moderate

TLDR

Python tool with a Tkinter GUI and CLI that converts manga PDFs into EPUB or CBZ files tuned for Apple Books, with controls for spreads, blanks, covers, and series volumes.

Mindmap

mindmap
  root((manga-pdf-to-epub))
    Inputs
      Manga PDF files
      Cover image
      Preset files
    Outputs
      EPUB ebook
      CBZ archive
      Preset v2 JSON
    Use Cases
      Read manga on Apple Books
      Fix broken double page spreads
      Batch convert a series
    Tech Stack
      Python
      Tkinter
      EPUB
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Convert a manga PDF into an EPUB that displays correct right-to-left spreads in Apple Books.

USE CASE 2

Batch-import a full series of volume PDFs, set per-volume titles, and export only the ready ones.

USE CASE 3

Save a preset for spine order, blank pages, and metadata, then apply it across several volumes.

USE CASE 4

Use the CLI to script bulk conversion with custom cover pages and inserted external images.

What is it built with?

PythonTkinterEPUBCBZ

How does it compare?

0xh4ku/manga-pdf-to-epubayyouboss0011/sherlockmapsegoist-machines/lodedb
Stars606060
LanguagePythonPythonPython
Setup difficultymoderatemoderateeasy
Complexity2/53/53/5
Audiencegeneraldatadeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Python 3.11 or newer and a make setup step to create a virtualenv and install dependencies.

In plain English

This project is a specialized converter for turning manga PDF files into EPUB or CBZ ebook files, aimed at readers who use Apple Books on iPad or Mac. It is not a general PDF compressor. The README is clear that it assumes the source PDF already contains the manga pages as images, and the goal is to copy those images into the ebook losslessly while tidying up the reading order. The core problem it solves is described early on. Manga is usually read right to left, with art that spans two facing pages. Apple Books has a quirk where it can stick an invisible blank page next to the cover, which throws off every spread after it and splits double-page artwork down the middle. Most converters produce a valid file but give you no way to see or fix this. This tool gives you that control. It can preview where Apple Books will insert the virtual blank, let you add or delete real blank pages anywhere, and adjust which image is treated as the cover. The project ships both a graphical interface built with Tkinter and a command-line script. The GUI workflow walks the reader through opening a PDF, keeping the Apple Books cover-gap preview on, inspecting spreads, inserting blanks where needed, deleting unwanted pages with an undo option, setting title, author, language, and cover image, and finally exporting and testing the file in Apple Books. There is also a series mode that imports many volumes at once, gives each a generated Volume number title, lets you review each one individually, mark volumes as ready, and export only the ready ones. Layout choices can be saved as version 2 preset files that record spine order, blanks, deleted pages, inserted external images, and metadata defaults. Presets can be applied to a chosen subset of volumes using a scope syntax like 1,2,7 or 1-7 or all, while each volume keeps its own auto-generated series title. The command line covers the same ground. The README shows examples for single PDFs, multiple PDFs into an output directory, setting metadata, choosing a specific source page as cover-only art, applying a preset, deleting page ranges, inserting an external PNG before a chosen spine position, and tagging series volumes. Installation needs Python 3.11 or newer and a make setup command that creates a virtual environment and installs requirements.

Copy-paste prompts

Prompt 1
Walk me through converting a manga PDF with manga-pdf-to-epub so two-page spreads stay aligned in Apple Books.
Prompt 2
Help me write a manga-pdf-to-epub CLI command that converts volumes 1 to 7 with the same preset.
Prompt 3
Diagnose why Apple Books inserted a blank page after my cover and fix it using manga-pdf-to-epub.
Prompt 4
Build a preset v2 file for manga-pdf-to-epub that sets series metadata and deletes the ad pages at the back.

Frequently asked questions

What is manga-pdf-to-epub?

Python tool with a Tkinter GUI and CLI that converts manga PDFs into EPUB or CBZ files tuned for Apple Books, with controls for spreads, blanks, covers, and series volumes.

What language is manga-pdf-to-epub written in?

Mainly Python. The stack also includes Python, Tkinter, EPUB.

How hard is manga-pdf-to-epub to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is manga-pdf-to-epub for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.