Sozi-export
Sozi-export copied to clipboard
Failure to export to pdf or pptx
Greetings,
thanks for this wonderfull program !
I wanted to export a project of mine to pdf using this command line:
sozi-to-pdf -i 1:14,16:18 -o seminar.pdf -P "seminar.sozi.html" and I got the following error message:
Converting seminar.sozi.html to seminar.pdf internal/validators.js:125 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at normalizeSpawnArguments (child_process.js:411:3)
at spawn (child_process.js:545:16)
at Object.exports.exec (/usr/local/lib/node_modules/sozi-export/node_modules/phantomjs-prebuilt/lib/phantomjs.js:72:10)
at Object.exports.convertToPPTX (/usr/local/lib/node_modules/sozi-export/lib/index.js:85:21)
at Object.
I suspect this is a problem with the handling of text strings from the command line. My skills in JS are naught, unfortunately.
I am running Debian testing.
Sincerely, Filippo
Thanks for reporting this issue. It looks like a duplicate of issue #18 with a slightly different error message.
Please read my comment about issue #18 for details.