View Single Post
Old 03-13-2019, 03:17 PM   #1
EmilThelonius
Enthusiast
EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.EmilThelonius knows who John Galt is.
 
Posts: 37
Karma: 71294
Join Date: May 2016
Device: Sony DPT-RP1 and Pocketbook Touch Lux 2 and Basic
ebook-convert command and .cbr files

Hi everyone!
Is it possible to convert .cbr files to pdf via the ebook-convert command?
The conversion within Calibre works perfectly well – when I use a shell script it gives out an error...
If I delete all conditions and convert the file via ebook-convert I get a folder with .png files in it and not a pdf...
Does anyone know why?

SOLVED!! I made a mistake !
Anyone who needs the script:


FULL_PATH="$1"
ORIG_FILE=$(basename "$FULL_PATH")
/Applications/Calibre.app/Contents/MacOS/ebook-convert "$ORIG_FILE" "converted/$(basename "$FULL_PATH" .cbr).pdf"

Where $1 is the file!

I love calibre!

Last edited by EmilThelonius; 03-13-2019 at 03:30 PM.
EmilThelonius is offline   Reply With Quote