NickNaso / ghostscript4js

Ghostscript4JS binds the Ghostscript C API to the Node.JS world.
http://www.nacios.it
Apache License 2.0
66 stars 19 forks source link

spaces #39

Closed minhnhatspk closed 4 years ago

minhnhatspk commented 5 years ago

As discussion https://stackoverflow.com/questions/42578061/ghostscript-and-spaces-in-filenames I see that on the version 3.0.0 you already resolved this problem, but I'm using electron and after updating to v3.0.0 I got some problem. so how can I fix this error without updating version to 3.0.0? I'm using v2.0.7.

NickNaso commented 5 years ago

Hi @minhnhatspk, the version 3.0.0 uses N-API and I can say that with some version of electron we there are some issues with N-API. I solved the space problem in version 3.0.0 because I added a new way to set parameter to pass at execute function like an array. I'm interested on knowing the error that you get when use the version 3.0.0 with electron. Could you post it here?

minhnhatspk commented 5 years ago

Here is the error I got image ghostscript4js v3.0.0 electron v1.8.8 It also occurs the same error when I add --napi-modules to my command.

NickNaso commented 5 years ago

Do you know which version of Node.js embed the version of electron you are using?

minhnhatspk commented 5 years ago

Do you know which version of Node.js embed the version of electron you are using?

I'm using Node.js version 8.12.0