Skip to main content

A command-line tool to convert CBR (Comic Book RAR) files into PDF

Project description

📚 cbrtopdf

cbrtopdf is a command-line tool that converts CBR (Comic Book RAR) files into PDF, with proper support for:

  • Comics (left-to-right reading)

  • Manga (right-to-left reading)

  • Double-page spreads

  • Automatic page rotation

  • Chapter detection and PDF bookmarks

Built with a focus on correct reading order and clean output, without overcomplicated presets.

✨ Features

  • 📦 Extracts .cbr archives

  • 🖼️ Supports common image formats (JPG, PNG, WEBP, etc.)

  • ✂️ Split horizontal double pages into two vertical pages

  • 📖 Manga (RTL) and Comic (LTR) reading order

  • 🔄 Rotate horizontal pages instead of splitting

  • 📑 Automatically adds PDF bookmarks when chapters are detected

  • 🧹 Optional cleanup of extracted files

  • 🧠 Clear logs and predictable behavior

📦 Installation

pip install cbrtopdf

🔧 System Requirements

The following external tools must be installed on your system:

  • unrar

  • img2pdf

Debian / Ubuntu

sudo apt install unrar img2pdf

🚀 Usage

Basic conversion

cbrtopdf convert comic.cbr

This will generate:

comic.pdf

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

cbrtopdf-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

cbrtopdf-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file cbrtopdf-0.1.1.tar.gz.

File metadata

  • Download URL: cbrtopdf-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic

File hashes

Hashes for cbrtopdf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bca1ad411773a71e718b055c7d1dd3b06f53d0d3a483fbfbe0b2d200b412343e
MD5 70506af7f38ce245b92cb7e01d08e8c8
BLAKE2b-256 d5dadbea0287d763bd2b994d4d8cc3860adeacaf8e8facb0f2b2856c28402cdc

See more details on using hashes here.

File details

Details for the file cbrtopdf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cbrtopdf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.12 Linux/5.15.0-161-generic

File hashes

Hashes for cbrtopdf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3987d5e6f289fc903ff55e71e08f91572953baae9211ccb45e13ba4fdc74ce6
MD5 238285894a2f560c726322470467b04d
BLAKE2b-256 817296f5cab4057d7f00f08a5c980ff666f301a142a77c3d3a9040c8312a03cc

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