Skip to content

deveduar/pdf-to-cbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF to CBR Converter 🖼️📄

Description

A Python script to convert PDF files to CBR (Comic Book RAR) format, perfect for digital comic and manga readers.

Disclaimer

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.

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/your-username/pdf-to-cbr.git
cd pdf-to-cbr
  1. Install dependencies:
pip install -r requirements.txt
  1. Download and Install Poppler:
    • Download Poppler binaries for Windows
    • Extract contents into the project folder

Usage

Basic Usage

python main.py "path/to/file.pdf"

Advanced Options

python main.py "path/to/file.pdf" --output-dir images --dpi 300 --quality 95

Parameters

  • 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)

Examples

Convert PDF with default settings

python main.py "D:/Manga/chapter1.pdf"

Convert with custom configuration

python main.py "D:/Manga/chapter2.pdf" --output-dir my_images --dpi 600 --quality 90

Roadmap

  • Convert to ZIP and CBR
  • Loading improvements and color enhancements

Troubleshooting

  • Ensure Poppler is correctly installed and added to system PATH
  • Check Python version compatibility
  • Verify input PDF file integrity

Contributing

Contributions are welcome! Please:

  • Open an issue to discuss proposed changes
  • Create a pull request with detailed description
  • Follow project coding standards

About

Python script for convert pdf in images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages