π 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
Top comments (0)