-
Notifications
You must be signed in to change notification settings - Fork 27
Description
var unoconv = require('unoconv');
unoconv.convert('1.docx', 'pdf', function (err, result) {
// result is returned as a Buffer
fs.writeFile('converted.pdf', result);
});
below error:
child_process.js:961
throw new TypeError('options argument must be an object');
^
TypeError: options argument must be an object
at normalizeSpawnArguments (child_process.js:961:11)
at Object.exports.spawn (child_process.js:984:38)
at Object.unoconv.convert (E:\Projects\node_modules\unoconv\index.js:46:26)
at Object. (E:\Projects\01_Tmp\hwcloud\test.js:15:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)