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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cbrtopdf-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f7074856458d850cdec3b24df7dfcd2fcf0a991b15022d2626239e0193af8c38
MD5 624bb26ac6b094e076fcf2a6cddfdf55
BLAKE2b-256 fe5ad2403c58e18e599948f35d7aa4b141bcd3038880a39a831db9c1f4ed940a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cbrtopdf-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f22c868198cdbfc04f19ddee901da6f4f68f633aaff1bdbecbcc9c62f03f9dd1
MD5 11d3100ff782468991b12d3376f24019
BLAKE2b-256 820d85023a15fb2115912801fcfd4aab81b59ab6efcb8254b0fddc4c4c95179d

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