Quote:
Originally Posted by epubfan
hello,
i convert a lot of books via script/CLI.
is there a way to tell "ebook-convert" setting the name of the generated epub automatically (e.g. generating from book.xhtml-metadata or from file-name) so i must not set the epub-name manually?
thanks a lot
|
From the documentation:
---------------------------------------------------------------------
Usage: ebook-convert input_file output_file [options]
Convert an ebook from one format to another.
input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command.
The output ebook format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a directory and an "open ebook" (OEB) consisting of HTML files is written to that directory. These files are the files that would normally have been passed to the output plugin.
-------------------------------------------------------------------
So, you should be able to just enter the command "ebook-convert SomeName.pdf .epub" and it would produce "SomeName.epub".