Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realjf/epub2pdf
convert epub to pdf
https://github.com/realjf/epub2pdf
convert ebook epub pdf
Last synced: 14 days ago
JSON representation
convert epub to pdf
- Host: GitHub
- URL: https://github.com/realjf/epub2pdf
- Owner: realjf
- License: apache-2.0
- Created: 2022-10-28T07:36:50.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-04T07:53:50.000Z (9 months ago)
- Last Synced: 2024-08-01T08:13:35.861Z (3 months ago)
- Topics: convert, ebook, epub, pdf
- Language: Go
- Homepage:
- Size: 167 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# epub2pdf
convert epub to pdf## Feature
### v0.0.3(latest)
- -o=/path specify output path
- -f=/path specify input path
- -r recursive directory
- -v output details
- -m output debug details
- -j=N allow N jobs at once
- -d delete source file after convert successfully
- -t specifies the timeout for each conversion, the unit of time is seconds, default is no limit.
- repair the recursive directory error
- cpu and memory limit by cgroup### v0.0.2
- -o=/path specify output path
- -f=/path specify input path
- -r recursive directory
- -v output details
- -m output debug details
- -j=N allow N jobs at once
- -d delete source file
- -t specifies the timeout for each conversion.### v0.0.1(discard)
## Supported Convert
- epub to pdf## Required
- need to install [`calibre`](https://calibre-ebook.com/download)
- add `calibre` and `ebook-convert` to `PATH` environment variablelinux user can run like this to install calibre
```sh
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
```
windows and macOS user can download from [Release Assets](https://github.com/realjf/epub2pdf/releases)## Quick start
### Option 1: Download binary[see release](https://github.com/realjf/epub2pdf/releases)
### Option 2: Build from source code
#### Required
- [go](https://go.dev/dl/) development environment
- [make](https://gnuwin32.sourceforge.net/packages/make.htm)**`Linux`**
```sh
make build
cd bin
./epub2pdf convert /path/to/epub_directory
```
**`Windows`**
```powershell
make.exe build_win
cd bin
epub2pdf.exe convert /path/to/epub_directory
```
**`MacOS`**
```sh
make build_darwin
cd bin
epub2pdf convert /path/to/epub_directory
```**Output**
The output default is in source directory## License
epub2pdf is released under the Apache 2.0 license. See [LICENSE](https://github.com/realjf/epub2pdf/blob/master/LICENSE)