Skip to content

monkeyKingProgrammer/epub2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages