Metadata-Version: 2.4
Name: cbrtopdf
Version: 0.1.3
Summary: A command-line tool to convert CBR (Comic Book RAR) files into PDF
License: MIT
License-File: LICENSE
Author: JeremyAndress
Author-email: jeremysilvasilva@gmail.com
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: pikepdf (==10.0.3)
Requires-Dist: pillow (==12.0.0)
Requires-Dist: typer (==0.20.1)
Description-Content-Type: text/markdown

# 📚 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
```

