node-unoconv
node-unoconv copied to clipboard
Node.js wrapper for converting documents with unoconv.
I run this: ``` JavaScript var unoconv = require('unoconv'); unoconv.convert('document.docx', 'pdf', function (err, result) { }); ``` And I have such error: ``` events.js:72 throw er; // Unhandled 'error' event...
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...
Added more unoconv option. Made a slight fix to the err detection logic based on return code.
Spawn accept an object as third argument
When I do this (I'm using coffeescript): ``` unoconv.convert 'C:/Users/me/Desktop/test.pptx', 'pdf', (err, result)-> console.log err ``` I get ``` Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) ``` Any...
These errors are sent to stderr, then causing the node-unoconv code to think it failed. ``` Error: Warning: -headless is deprecated. Use --headless instead. Warning: -invisible is deprecated. Use --invisible...