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.2.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.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cbrtopdf-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bb6062fe0b060e2f46559fe6c7b8f282c4afbeb5159202f9f62991b23dba6ac3
MD5 a1cacb8be7b2ba0347c84862d3420999
BLAKE2b-256 5f932de1af55e4597b020d6fabbf79727c72977932bc9ed665108171b5d72a8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cbrtopdf-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c283c0c227ec9a78cdb5618d57b7e28ec58fd3e26d3ab85afa3a376d8d41f8c
MD5 12957675f8e219ae397246fc2810133e
BLAKE2b-256 ea7a8e23ee950c5d8eda8e5f516e8942cc194c38502a90b792cecd2d242268dc

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