A simple, Python-based CLI tool to convert EPUB files to professional-looking PDF documents.
- 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.
The application requires Python 3 and the following dependencies:
EbookLibbeautifulsoup4weasyprint
-
Clone the repository:
git clone https://github.com/monkeyKingProgrammer/epub2pdf.git cd epub2pdf -
Install dependencies:
pip install -r requirements.txt
Run the script using Python:
python epub2pdf.pyYou 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.
This project is licensed under the MIT License - see the LICENSE file for details.