📘 Convert EPUB to PDF using Node.js (Calibre Powered)
If you are looking for a free and reliable way to convert EPUB to PDF, this open-source tool can help.
epub-to-pdf-cli is a Node.js command-line utility that converts EPUB files to PDF using Calibre — without uploading files to any online service.
✨ Why Not Use Online EPUB to PDF Converters?
Most online converters:
- Upload your files to servers
- Have size limits
- Reduce quality
- Are not automation-friendly
This tool works offline, keeps your files private, and integrates easily with scripts.
🚀 Features
- Convert EPUB to PDF using Calibre
- Works on Windows, macOS, Linux
- CLI + programmatic API
- Lightweight & fast
- No bundled binaries
📦 Installation
npm install -g epub-to-pdf-cli
Or run instantly:
npx epub-to-pdf-cli book.epub
🖥 CLI Usage
epub2pdf mybook.epub mybook.pdf
📚 Programmatic Usage
import { convertEpubToPdf } from 'epub-to-pdf-cli';
await convertEpubToPdf('book.epub', 'book.pdf');
⚙ Requirements
This tool uses Calibre.
Check installation:
ebook-convert --version
Install Calibre:
- Linux:
sudo apt install calibre - macOS:
brew install calibre - Windows: https://calibre-ebook.com/download
🔗 Project Links
📦 npm package:
https://www.npmjs.com/package/epub-to-pdf-cli
💻 GitHub repository:
https://github.com/surajsutar7/epub-to-pdf-cli
🌐 Documentation site:
https://surajsutar7.github.io/epub-to-pdf-cli/
🧠 Who Is This For?
- Developers
- Ebook automation pipelines
- CI/CD workflows
- Anyone needing EPUB to PDF conversion
⭐ Support the Project
If you find this useful:
- ⭐ Star the repo
- 📦 Download on npm
- 🧑💻 Contribute on GitHub
MIT Licensed @ Suraj Sutar