-
Notifications
You must be signed in to change notification settings - Fork 7
Failure to export to pdf or pptx #23
Description
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. (/usr/local/lib/node_modules/sozi-export/cli/sozi-to-pptx.js:37:12)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
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