5

I use the following command to produce a single page .html file for a .epub file,

pandoc -f epub -t html -o output.html  ./book.epub

But the .html file is lacking images. Is there a way to tell pandoc or something to embed the images in them? Just like Chrome's SingleFile produces.

Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187

1 Answers1

2

You can use --embed-resources to instruct Pandoc to include images and stylesheets (and ...) in the HTML as data URIs. See the official manual for more information

The --standalone option should also be used to include the HTML header and footer

pandoc -f epub -t html -o output.html  ./book.epub --standalone --embed-resources
exyi
  • 452
  • 3
  • 12