[BUG] Fails if there's a space in filename
waqarHocain opened this issue · 1 comments
waqarHocain commented
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