Open waqarHocain opened 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.
Command failed
If there is a space in filename, it fails. Here's a simple program with space in filename:
This program fails with a
Command failed
error. But if you remove space from filename, it converts file successfully.