Sozi-export icon indicating copy to clipboard operation
Sozi-export copied to clipboard

Failure to export to pdf or pptx

Open lopippo opened this issue 4 years ago • 1 comments

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

lopippo avatar Mar 04 '20 17:03 lopippo

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.

aumouvantsillage avatar Mar 05 '20 13:03 aumouvantsillage