May 31, 2022

Convert an HTML webpage into an EPUB file with Pandoc

Run:

$ pandoc -f html -t epub3 -o output.epub input.html --quiet

You can add metadata for EPUB:

$ pandoc -f html -t epub3 --epub-metadata=metadata.xml -o output.epub input.html

If you need to install Pandoc on Trisquel GNU/Linux run:

$ sudo apt install pandoc

command-line interface (cli) personal computing pandoc gnu linux trisquel text processing wiki shell literacy offline

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88