A Python script to convert PDF files to CBR (Comic Book RAR) format, perfect for digital comic and manga readers.
This tool is intended for personal and educational use only. Please ensure you have the right to convert and distribute any content with copyright protection. The creator of this script does not condone or take responsibility for any unauthorized use, including the redistribution of copyrighted material.
- Python 3.7+
- Poppler for Windows
- Clone the repository:
git clone https://github.com/your-username/pdf-to-cbr.git
cd pdf-to-cbr
- Install dependencies:
pip install -r requirements.txt
- Download and Install Poppler:
- Download Poppler binaries for Windows
- Extract contents into the project folder
python main.py "path/to/file.pdf"
python main.py "path/to/file.pdf" --output-dir images --dpi 300 --quality 95
path/to/file.pdf
: Path to the PDF file to convert--output-dir
: Output directory for images (default:output
)--dpi
: Image resolution (default: 300)--quality
: JPEG compression quality (default: 95, range 1-100)
python main.py "D:/Manga/chapter1.pdf"
python main.py "D:/Manga/chapter2.pdf" --output-dir my_images --dpi 600 --quality 90
- Convert to ZIP and CBR
- Loading improvements and color enhancements
- Ensure Poppler is correctly installed and added to system PATH
- Check Python version compatibility
- Verify input PDF file integrity
Contributions are welcome! Please:
- Open an issue to discuss proposed changes
- Create a pull request with detailed description
- Follow project coding standards