This Node.js project converts PDFs to EPUB format using the Calibre CLI tool ebook-convert
. It scans a directory of PDFs and outputs the converted EPUBs into a separate directory.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What you need to install before running the project:
- Node.js (v14 or higher)
- Calibre (to use
ebook-convert
)
You can install Node.js from here, and Calibre from here.
Follow these steps to set up the project on your local machine:
- Clone & Navigate to the repository:
git clone https://github.com/utkuvrs/pdf-to-epub-converter.git
cd pdf-to-epub-converter
- Install dependencies:
npm install
- Ensure Calibre's ebook-convert is in your system's PATH.
ebook-convert --version
- Create the directories for PDFs and EPUBs (if they don't exist)
mkdir pdfs epubs
- Add PDF files to the pdfs directory.
node app.js