Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.03 KB

File metadata and controls

45 lines (30 loc) · 1.03 KB

Epub2PDF

A simple, Python-based CLI tool to convert EPUB files to professional-looking PDF documents.

Features

  • Converts EPUB to PDF format.
  • Applies professional styling, including the Merriweather font, justified text, and pagination.
  • Handles embedded images by converting them to base64.
  • User-friendly interactive command-line interface.

Requirements

The application requires Python 3 and the following dependencies:

  • EbookLib
  • beautifulsoup4
  • weasyprint

Installation

  1. Clone the repository:

    git clone https://github.com/monkeyKingProgrammer/epub2pdf.git
    cd epub2pdf
  2. Install dependencies:

    pip install -r requirements.txt

Usage

Run the script using Python:

python epub2pdf.py

You will be prompted to enter the filename or path to your EPUB file. The tool will automatically generate a PDF with the same base name in the current directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.