sethvincent / ebook-convert

wrapper around calibre's ebook-convert command
Other
80 stars 18 forks source link

[BUG] Fails if there's a space in filename #8

Open waqarHocain opened 1 year ago

waqarHocain commented 1 year ago

If there is a space in filename, it fails. Here's a simple program with space in filename:

  const convert = require("ebook-convert");
   const inputFile = path.join(__dirname, "Crisis Caravan.epub");
   const outFile = path.join(__dirname, "Crisis Caravan.pdf");                 
   const options = {
     input: inputFile, //path to epub
     output: outFile, //path to pdf
   };
   convert(options, function (err) {
     if (err) console.log(err);
   });

This program fails with a Command failed error. But if you remove space from filename, it converts file successfully.

waqarHocain commented 1 year ago

9