Sitelet https://github.com/John-ZCT/EpubToPdf
Skip to content
 
 

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EpubToPdf

This program converts epub documents to pdf documents.

Installation

Clone this repository to your machine.

Requirements

To install the requirements, run the following command:

pip install -r requirements.txt

After this, you install the wkhtmltopdf which is a dependency of the pdfkit module.

wkhtmltopdf file can be downloaded here

Make sure to add wkhtlmtopdf as an executable in Windows environment paths.

For Debian/Ubuntu users:

$ sudo apt-get install wkhtmltopdf

should do the trick.

If you get a QXcbConnection: Could not connect to display error, check this issue.

Usage

Copy the epub file inside the repository folder when forked.

Run the main.py file, adding the name of the epub file as a commandline argument.

As shown below:

python main.py epub-file-name

Or edit the Simple Launcher BatchFile

type your book name into <yourbookname> for the python .\main.py <yourbookname>.epub

The name must be type in english

About

Converts Epub files to PDF files. (Chinese Book Supported Version)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages