![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2013
Device: kobo touch
|
ebook-convert: set epub-name automatically?
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 |
![]() |
![]() |
![]() |
#2 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
|
Quote:
--------------------------------------------------------------------- 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". |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,185
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But remember, PDF is crap for converting from.
|
![]() |
![]() |
![]() |
#4 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
|
I agree with you completely. However, the sad fact is that, over the last couple|three years, that's where I usually find myself in regards to Calibre, so it was the first thing I came up with. In another thread, there was a distinction made as to whether Calibre users were "creators" or "fixers." I'm one step below a fixer and consider myself a salvager of very poorly done PDFs.
Any calibre-valid file extension would work in the "ebook-convert" command, subject to the documented syntax above. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set (user defined) metadata for downloaded news automatically | mjost | Library Management | 0 | 03-10-2013 11:45 AM |
Automatically set custom column when fetching news | bork | Library Management | 1 | 04-14-2012 03:20 AM |
Can recipes be set to automatically retry if they fail on 1st attempt? | BobbyVan | Recipes | 1 | 03-16-2012 10:48 AM |
Automatically convert file to EPUB upon import into library | astrodad | Calibre | 6 | 07-23-2010 12:22 PM |
set meta data with ebook-meta and ebook-convert | krischik | Calibre | 6 | 01-19-2010 11:40 AM |