Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Failure to export to pdf or pptx #23

Open
lopippo opened this issue Mar 4, 2020 · 1 comment
Open

Failure to export to pdf or pptx #23

lopippo opened this issue Mar 4, 2020 · 1 comment

Comments

@lopippo
Copy link

lopippo commented Mar 4, 2020

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

@aumouvantsillage aumouvantsillage transferred this issue from sozi-projects/Sozi Mar 5, 2020
@aumouvantsillage
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants